aboutsummaryrefslogtreecommitdiff
path: root/src/threading.h
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-10-11 20:08:32 +0200
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-10-11 20:08:32 +0200
commit44540b9335f3bbd2f6fda3e13329b28ec76b6d7a (patch)
tree4b6d659c0976e58f6cbd907b673c2b9d769b9e88 /src/threading.h
parent938ee19cfcac09bfcfa1dd2a7861690436024410 (diff)
downloadlanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.tar.gz
lanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.tar.bz2
lanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.zip
version 3.7.0
* fix lanes.threads() not being available in a lane where lanes.configure() settings didn't contain track_lanes although the initial configure() call did. * require "lanes".configure() sequence is only necessary at the first require "lanes". * fix a crash at application shutdown where in some situations we could deinitialize the protected allocator mutex while a lane was still using it. * fix timers broken by change 69
Diffstat (limited to 'src/threading.h')
-rw-r--r--src/threading.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h
index 7d94f26..d2320aa 100644
--- a/src/threading.h
+++ b/src/threading.h
@@ -97,7 +97,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED };
97 #define SIGNAL_T CONDITION_VARIABLE 97 #define SIGNAL_T CONDITION_VARIABLE
98 #define MUTEX_T CRITICAL_SECTION 98 #define MUTEX_T CRITICAL_SECTION
99 #define MUTEX_INIT( ref) InitializeCriticalSection( ref) 99 #define MUTEX_INIT( ref) InitializeCriticalSection( ref)
100 #define MUTEX_FREE( ref) DeleteCriticalSection( ref) 100 #define MUTEX_FREE( ref) do{ DeleteCriticalSection( ref); *ref = INVALID_HANDLE_VALUE;} while(0)
101 #define MUTEX_LOCK( ref) EnterCriticalSection( ref) 101 #define MUTEX_LOCK( ref) EnterCriticalSection( ref)
102 #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref) 102 #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref)
103 103