mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 07:23:03 +01:00
Misc
This commit is contained in:
parent
2d22201759
commit
2d3ddf116d
@ -153,7 +153,7 @@ int THD_rec_mutex_unlock(REC_MUTX_T * rec_mutex)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* SUPERSERVER */
|
||||
#endif // SUPERSERVER
|
||||
|
||||
|
||||
#ifdef WIN_NT
|
||||
@ -309,7 +309,7 @@ void THD_yield(void)
|
||||
sched_yield();
|
||||
#else
|
||||
pthread_yield();
|
||||
#endif /* _POSIX_PRIORITY_SCHEDULING */
|
||||
#endif // _POSIX_PRIORITY_SCHEDULING
|
||||
#endif
|
||||
|
||||
#ifdef SOLARIS_MT
|
||||
@ -319,5 +319,5 @@ void THD_yield(void)
|
||||
#ifdef WIN_NT
|
||||
SleepEx(0, FALSE);
|
||||
#endif
|
||||
#endif /* MULTI_THREAD */
|
||||
#endif // MULTI_THREAD
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ inline void THD_mutex_lock_global(void) {
|
||||
inline void THD_mutex_unlock_global(void) {
|
||||
global_mutex.leave();
|
||||
}
|
||||
#endif
|
||||
#endif // MULTI_THREAD
|
||||
|
||||
// recursive mutex
|
||||
#ifdef SUPERSERVER
|
||||
@ -186,12 +186,12 @@ typedef rec_mutx_t REC_MUTX_T;
|
||||
#define THD_GLOBAL_MUTEX_UNLOCK THD_mutex_unlock_global()
|
||||
#define THD_MUTEX_LOCK(mutx) THD_mutex_lock(mutx)
|
||||
#define THD_MUTEX_UNLOCK(mutx) THD_mutex_unlock(mutx)
|
||||
#else
|
||||
#else // MULTI_THREAD
|
||||
#define THD_GLOBAL_MUTEX_LOCK
|
||||
#define THD_GLOBAL_MUTEX_UNLOCK
|
||||
#define THD_MUTEX_LOCK(mutx)
|
||||
#define THD_MUTEX_UNLOCK(mutx)
|
||||
#endif
|
||||
#endif // MULTI_THREAD
|
||||
|
||||
extern "C" {
|
||||
int API_ROUTINE gds__thread_start(ThreadEntryPoint*, void*, int, int,
|
||||
|
Loading…
Reference in New Issue
Block a user