mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-01 00:03:03 +01:00
31 lines
501 B
C
31 lines
501 B
C
#ifndef JRD_THREAD_PROTO_H
|
|
#define JRD_THREAD_PROTO_H
|
|
|
|
#include "../jrd/thd.h"
|
|
#include "../jrd/sch_proto.h"
|
|
|
|
#ifdef SUPERSERVER
|
|
inline void THREAD_ENTER() {
|
|
SCH_enter();
|
|
}
|
|
inline void THREAD_EXIT() {
|
|
SCH_exit();
|
|
}
|
|
#else // SUPERSERVER
|
|
inline void THREAD_ENTER() {
|
|
gds__thread_enter();
|
|
}
|
|
inline void THREAD_EXIT() {
|
|
gds__thread_exit();
|
|
}
|
|
#endif // SUPERSERVER
|
|
|
|
inline void THREAD_SLEEP(ULONG msecs) {
|
|
THD_sleep(msecs);
|
|
}
|
|
inline void THREAD_YIELD() {
|
|
THD_yield();
|
|
}
|
|
|
|
#endif // JRD_THREAD_PROTO_H
|