* so, we can stop here.
*/
ASSERT(thread_found_in_process == true);
-
+
+ Dmsg3(100, "%s:%d send kill to existing thread %p\n", file, line, thread);
return pthread_kill(thread, sig);
}
int bthread_kill(pthread_t thread, int sig,
const char *file="*unknown*", int line=0);
-#ifdef USE_LOCKMGR_SAFEKILL
-# define pthread_kill(a,b) bthread_kill((a),(b), __FILE__, __LINE__)
-#endif
-
#define BTHREAD_MUTEX_NO_PRIORITY {PTHREAD_MUTEX_INITIALIZER, 0}
#define BTHREAD_MUTEX_INITIALIZER BTHREAD_MUTEX_NO_PRIORITY
# define pthread_mutex_unlock(x) bthread_mutex_unlock(x)
# define pthread_cond_wait(x,y) bthread_cond_wait(x,y)
# define pthread_cond_timedwait(x,y,z) bthread_cond_timedwait(x,y,z)
+
+# ifdef USE_LOCKMGR_SAFEKILL
+# define pthread_kill(a,b) bthread_kill((a),(b), __FILE__, __LINE__)
+# endif
#endif
#else /* _USE_LOCKMGR */