aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_threads.h')
-rw-r--r--src/microhttpd/mhd_threads.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/microhttpd/mhd_threads.h b/src/microhttpd/mhd_threads.h
index 14612ded..818cd5fa 100644
--- a/src/microhttpd/mhd_threads.h
+++ b/src/microhttpd/mhd_threads.h
@@ -150,10 +150,9 @@ typedef struct _MHD_thread_handle_ID_ MHD_thread_handle_ID_;
150 * @param thread handle to watch 150 * @param thread handle to watch
151 * @return nonzero on success, zero otherwise 151 * @return nonzero on success, zero otherwise
152 */ 152 */
153#define MHD_join_thread_(thread) (WAIT_OBJECT_0 == WaitForSingleObject ( \ 153#define MHD_join_thread_(thread) \
154 (thread), INFINITE) ? (CloseHandle ( \ 154 ( (WAIT_OBJECT_0 == WaitForSingleObject ( (thread), INFINITE)) ? \
155 (thread)), ! 0) : \ 155 (CloseHandle ( (thread)), ! 0) : 0 )
156 0)
157#endif 156#endif
158 157
159#if defined(MHD_USE_POSIX_THREADS) 158#if defined(MHD_USE_POSIX_THREADS)
@@ -239,7 +238,7 @@ MHD_create_thread_ (MHD_thread_handle_ID_ *thread,
239 */ 238 */
240int 239int
241MHD_create_named_thread_ (MHD_thread_handle_ID_ *thread, 240MHD_create_named_thread_ (MHD_thread_handle_ID_ *thread,
242 const char*thread_name, 241 const char *thread_name,
243 size_t stack_size, 242 size_t stack_size,
244 MHD_THREAD_START_ROUTINE_ start_routine, 243 MHD_THREAD_START_ROUTINE_ start_routine,
245 void *arg); 244 void *arg);