Esempio n. 1
0
// Wrapping function for calling pthread_create()
static void *threadFunction(void *threadArguments) {
	Semaphore *threadSemaphore = (Semaphore *)((int **)threadArguments)[0];
	ObjectAction *objectAction = (ObjectAction *)((int **)threadArguments)[1];
	void *arguments = ((int **)threadArguments)[2];

	threadSemaphore->semaphorePost();

	objectAction->start(arguments);

	return NULL;
}