We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fda996 commit 72c24caCopy full SHA for 72c24ca
1 file changed
include/rfb/threading.h
@@ -57,6 +57,7 @@
57
#define THREAD_ROUTINE_RETURN_VALUE NULL
58
#define THREAD_SLEEP_MS(ms) usleep(ms*1000)
59
#define THREAD_JOIN(thread) pthread_join(thread, NULL)
60
+#define THREAD_DETACH(thread) pthread_detach(thread)
61
#define CURRENT_THREAD_ID pthread_self()
62
#endif
63
#elif defined(LIBVNCSERVER_HAVE_WIN32THREADS)
@@ -77,6 +78,7 @@
77
78
#define THREAD_ROUTINE_RETURN_VALUE
79
#define THREAD_SLEEP_MS(ms) Sleep(ms)
80
#define THREAD_JOIN(thread) WaitForSingleObject((HANDLE)thread, INFINITE)
81
+#define THREAD_DETACH(thread) CloseHandle((HANDLE)thread)
82
#define CURRENT_THREAD_ID GetCurrentThreadId()
83
#else
84
#define LOCK(mutex)
0 commit comments