I'm writing a wrapper thread class.
Because Posix "pthread_create" needs a static function, the concrete classes that going to use
the "start" methods will always find a bottleneck in the static method "run_thread"?
I saw different post where some people suggests extern C global function.
Is this the solution? But it must be synchronized?
This static method must be synchronized with static lock but how I said before this make a bottleneck!!
staticvoid* run_thread(void* ptr)
CCThread* thread = (CCThread*)ptr;
//to synchronize start method I don't know how the concrete classes will call
// this method. Ex. Many threads will call this method on the same instance.