commit fa42f6207bf3fe3b4c5f1bee26deb8933878050f
parent cdb146b8845ca1ae30f362de5be7c469a8ed7b95
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 8 Oct 2020 21:12:13 +0300
mhd_threads: added and clarified comments
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_threads.h b/src/microhttpd/mhd_threads.h
@@ -96,11 +96,14 @@ typedef DWORD MHD_thread_ID_;
/* Depending on implementation, pthread_create() MAY set thread ID into
* provided pointer and after it start thread OR start thread and after
- * if set thread ID. In latter case, to avoid data races, additional
- * pthread_self() call is required in thread routine. Is some platform
+ * it set thread ID. In the latter case, to avoid data races, additional
+ * pthread_self() call is required in thread routine. If some platform
* is known for setting thread ID BEFORE starting thread macro
* MHD_PTHREAD_CREATE__SET_ID_BEFORE_START_THREAD could be defined
* to save some resources. */
+/* * handle - must be valid when other thread knows that particular thread
+ is started.
+ * ID - must be valid when code is executed inside thread */
#if defined(MHD_USE_POSIX_THREADS)
# ifdef MHD_PTHREAD_CREATE__SET_ID_BEFORE_START_THREAD
union _MHD_thread_handle_ID_