8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 12:03:02 +01:00
This commit is contained in:
asfernandes 2006-05-02 00:25:11 +00:00
parent 2d22201759
commit 2d3ddf116d
2 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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,