what does it mean when private static pointer is assigned "this" ?
Posted on 2013-06-07
Please consider following:
static unsigned int _tsk;
Protocol * _Protocol;
static SomeTask *_instance;
// definition of instance
SomeTask * SomeTask::_instance = NULL;
// I belive following is a constructor
_instance = this;
somewhere in the code, 'new' operator is used to create object of this class and I belive immediatedly above constructor is called. What is "this" ? What does it mean to assign "this" to private static pointer '_instance'.