t->function( t->arg );
/* Inform that the thread can be joined now */
- hb_log( "thread %x exited (\"%s\")", t->thread, t->name );
+ hb_deep_log( 2, "thread %x exited (\"%s\")", t->thread, t->name );
hb_lock( t->lock );
t->exited = 1;
hb_unlock( t->lock );
// SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL );
#endif
- hb_log( "thread %x started (\"%s\")", t->thread, t->name );
+ hb_deep_log( 2, "thread %x started (\"%s\")", t->thread, t->name );
return t;
}
// WaitForSingleObject( t->thread, INFINITE );
#endif
- hb_log( "thread %x joined (\"%s\")",
+ hb_deep_log( 2, "thread %x joined (\"%s\")",
t->thread, t->name );
hb_lock_close( &t->lock );
pthread_mutexattr_t mta;
pthread_mutexattr_init(&mta);
+
+#if defined( SYS_CYGWIN )
pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL);
+#endif
pthread_mutex_init( &l->mutex, &mta );
//#elif defined( SYS_CYGWIN )