// myThreadCode /////////////////////////////////////////////////////////////// void * myThreadCode (void * param) { Singleton * theInstance; theInstance = Singleton::Instance(); sleep(1); theInstance->increaseShared(); return NULL; }