mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 10:43:03 +01:00
Misc.
This commit is contained in:
parent
e429ddd256
commit
369f43fc62
@ -64,7 +64,7 @@ ThreadData* gdbb;
|
||||
|
||||
#include "../common/classes/locks.h"
|
||||
#include "../common/classes/rwlock.h"
|
||||
Firebird::Mutex ib_mutex;
|
||||
Firebird::Mutex global_mutex;
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -482,9 +482,7 @@ jrd_req* EXE_find_request(thread_db* tdbb, jrd_req* request, bool validate)
|
||||
DEV_BLKCHK(request, type_req);
|
||||
|
||||
SET_TDBB(tdbb);
|
||||
#ifdef ANY_THREADING
|
||||
Database* dbb = tdbb->tdbb_database;
|
||||
#endif
|
||||
|
||||
/* I found a core file from my test runs that came from a NULL request -
|
||||
* but have no idea what test was running. Let's bugcheck so we can
|
||||
|
@ -43,12 +43,12 @@ inline void THD_mutex_unlock(Firebird::Mutex* m) {
|
||||
m->leave();
|
||||
}
|
||||
|
||||
extern Firebird::Mutex ib_mutex;
|
||||
extern Firebird::Mutex global_mutex;
|
||||
inline void THD_mutex_lock_global(void) {
|
||||
ib_mutex.enter();
|
||||
global_mutex.enter();
|
||||
}
|
||||
inline void THD_mutex_unlock_global(void) {
|
||||
ib_mutex.leave();
|
||||
global_mutex.leave();
|
||||
}
|
||||
|
||||
// recursive mutex
|
||||
|
Loading…
Reference in New Issue
Block a user