diff options
author | Peter Williams <peter@newton.cx> | 2015-12-19 21:08:09 -0500 |
---|---|---|
committer | Peter Williams <peter@newton.cx> | 2015-12-19 21:08:09 -0500 |
commit | 459fa93fd86da52379e2ff4dda6bbac38b4150ad (patch) | |
tree | 049128cd5a3025105abe5570ea06509e160f92b9 | |
parent | cdaeaa825db191bd65aad3aaaeb3178738727f05 (diff) | |
download | dbus-c++-459fa93fd86da52379e2ff4dda6bbac38b4150ad.tar.gz |
include/dbus-c++/dispatcher.h: compile fix when no DBUS_HAS_RECURSIVE_MUTEX
-rw-r--r-- | include/dbus-c++/dispatcher.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dbus-c++/dispatcher.h b/include/dbus-c++/dispatcher.h index b5b5536..f393e1a 100644 --- a/include/dbus-c++/dispatcher.h +++ b/include/dbus-c++/dispatcher.h @@ -267,6 +267,19 @@ struct Threading return new Mx; } +#ifndef DBUS_HAS_RECURSIVE_MUTEX + static bool mutex_free(Mutex *mx) + { + delete mx; + return true; + } + + static bool mutex_lock(Mutex *mx) + { + mx->lock(); + return true; + } +#else static void mutex_free(Mutex *mx) { delete mx; @@ -276,6 +289,7 @@ struct Threading { mx->lock(); } +#endif static void mutex_unlock(Mutex *mx) { |