pthread_cleanup_push( thread_completed, (void*)p );
p->thread();
pthread_exit(0);
- pthread_cleanup_pop(0);
+ pthread_cleanup_pop(1);
return 0;
}
}
pthread_attr_destroy(&attr);
usleep(1000);
- int timeout=20;
+ int timeout=50;
while(!alive && timeout--)
{
- eDebug("waiting for thread start...");
+// eDebug("waiting for thread start...");
usleep(1000*10);
}
if ( !timeout )