gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: mhd_threads: added and clarified


From: gnunet
Subject: [libmicrohttpd] branch master updated: mhd_threads: added and clarified comments
Date: Thu, 08 Oct 2020 20:20:14 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new fa42f620 mhd_threads: added and clarified comments
fa42f620 is described below

commit fa42f6207bf3fe3b4c5f1bee26deb8933878050f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 8 21:12:13 2020 +0300

    mhd_threads: added and clarified comments
---
 src/microhttpd/mhd_threads.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_threads.h b/src/microhttpd/mhd_threads.h
index 79520d53..ee2f6020 100644
--- 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_

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]