8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Threading cleanup. More to follow.

This commit is contained in:
dimitr 2006-04-30 17:30:32 +00:00
parent 8283f3bb85
commit 79652b7222

View File

@ -158,19 +158,7 @@ const SSHORT WAIT_PERIOD = -1;
#endif /* SUPERSERVER */
# ifdef V4_THREADING
# undef V4_GLOBAL_MUTEX_LOCK
# undef V4_GLOBAL_MUTEX_UNLOCK
# undef V4_MUTEX_INIT
# undef V4_MUTEX_LOCK
# undef V4_MUTEX_UNLOCK
# undef V4_MUTEX_DESTROY
# undef V4_JRD_MUTEX_LOCK
# undef V4_JRD_MUTEX_UNLOCK
# define V4_GLOBAL_MUTEX_LOCK {THREAD_EXIT(); THD_GLOBAL_MUTEX_LOCK; THREAD_ENTER();}
# define V4_GLOBAL_MUTEX_UNLOCK THD_GLOBAL_MUTEX_UNLOCK
# define V4_MUTEX_INIT(mutx) THD_MUTEX_INIT (mutx)
# define V4_MUTEX_LOCK(mutx) {THREAD_EXIT(); THD_MUTEX_LOCK (mutx); THREAD_ENTER();}
# define V4_MUTEX_UNLOCK(mutx) THD_MUTEX_UNLOCK (mutx)
# define V4_MUTEX_DESTROY(mutx) THD_MUTEX_DESTROY (mutx)
# ifndef SUPERSERVER
# define V4_JRD_MUTEX_LOCK(mutx) {THREAD_EXIT(); THD_JRD_MUTEX_LOCK (mutx); THREAD_ENTER();}