Преглед на файлове

mhd_threads: added and clarified comments

Evgeny Grin (Karlson2k) преди 5 години
родител
ревизия
fa42f6207b
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      src/microhttpd/mhd_threads.h

+ 5 - 2
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_