[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32871 - libmicrohttpd/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32871 - libmicrohttpd/src/include |
Date: |
Tue, 1 Apr 2014 09:23:33 +0200 |
Author: Karlson2k
Date: 2014-04-01 09:23:33 +0200 (Tue, 01 Apr 2014)
New Revision: 32871
Modified:
libmicrohttpd/src/include/platform_interface.h
Log:
fix macros for pthread mutex
Modified: libmicrohttpd/src/include/platform_interface.h
===================================================================
--- libmicrohttpd/src/include/platform_interface.h 2014-04-01 06:22:45 UTC
(rev 32870)
+++ libmicrohttpd/src/include/platform_interface.h 2014-04-01 07:23:33 UTC
(rev 32871)
@@ -176,7 +176,7 @@
* @return #MHD_YES on success, #MHD_NO on failure
*/
#define MHD_mutex_destroy_(mutex) \
- ((0 == pthread_mutex_destroy ((mutex), NULL)) ? MHD_YES : MHD_NO)
+ ((0 == pthread_mutex_destroy ((mutex))) ? MHD_YES : MHD_NO)
#elif defined(MHD_W32_MUTEX_)
/**
* Destroy previously created mutex.
@@ -196,7 +196,7 @@
* @return #MHD_YES on success, #MHD_NO on failure
*/
#define MHD_mutex_lock_(mutex) \
- ((0 == pthread_mutex_lock((mutex), NULL)) ? MHD_YES : MHD_NO)
+ ((0 == pthread_mutex_lock((mutex))) ? MHD_YES : MHD_NO)
#elif defined(MHD_W32_MUTEX_)
/**
* Acquire lock on previously created mutex.
@@ -218,7 +218,7 @@
* mutex was not locked.
*/
#define MHD_mutex_trylock_(mutex) \
- ((0 == pthread_mutex_trylock((mutex), NULL)) ? MHD_YES : MHD_NO)
+ ((0 == pthread_mutex_trylock((mutex))) ? MHD_YES : MHD_NO)
#elif defined(MHD_W32_MUTEX_)
/**
* Try to acquire lock on previously created mutex.
@@ -238,7 +238,7 @@
* @return #MHD_YES on success, #MHD_NO on failure
*/
#define MHD_mutex_unlock_(mutex) \
- ((0 == pthread_mutex_unlock((mutex), NULL)) ? MHD_YES : MHD_NO)
+ ((0 == pthread_mutex_unlock((mutex))) ? MHD_YES : MHD_NO)
#elif defined(MHD_W32_MUTEX_)
/**
* Unlock previously created and locked mutex.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32871 - libmicrohttpd/src/include,
gnunet <=