8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 10:43:03 +01:00
This commit is contained in:
dimitr 2006-04-30 19:21:23 +00:00
parent e429ddd256
commit 369f43fc62
3 changed files with 4 additions and 6 deletions

View File

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

View File

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

View File

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