Monday, June 20, 2005

to create a thread: you have to pass a name (address) of a function to pthread_create that is:
  • static
  • take void * as argument
  • retuns void *
--> static function must use static member data only because it is a static method that can't be dependent on any instance object of the class, so which data of which object shall it use ?? so it must use static data that is seen by all object

No comments:

Post a Comment