gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 02/02: Threads initialisation: reduce data


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/02: Threads initialisation: reduce data race on W32
Date: Tue, 07 Nov 2017 20:08:53 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 2715cf264953db9368bfba0223fbaf03ccc71743
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Nov 7 22:08:08 2017 +0300

    Threads initialisation: reduce data race on W32
---
 src/microhttpd/mhd_threads.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/microhttpd/mhd_threads.c b/src/microhttpd/mhd_threads.c
index 477080cf..21d0ecc7 100644
--- a/src/microhttpd/mhd_threads.c
+++ b/src/microhttpd/mhd_threads.c
@@ -210,7 +210,6 @@ MHD_create_thread_ (MHD_thread_handle_ID_ *thread,
 
   return !res;
 #elif defined(MHD_USE_W32_THREADS)
-  unsigned int thread_ID;
 #if SIZE_MAX != UINT_MAX
   if (stack_size > UINT_MAX)
     {
@@ -225,12 +224,11 @@ MHD_create_thread_ (MHD_thread_handle_ID_ *thread,
                                      start_routine,
                                      arg,
                                      0,
-                                     &thread_ID);
+                                     (unsigned*)&thread->ID);
 
   if ((MHD_thread_handle_)-1 == thread->handle)
     return 0;
 
-  thread->ID = (MHD_thread_ID_)thread_ID;
   return !0;
 #endif
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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