MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
| 静态 Public 成员函数 | 静态 Public 属性 | 静态 Protected 属性 | 所有成员列表
common::LockTrace类 参考

class  LockID
 

静态 Public 成员函数

static void check (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static void lock (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static void tryLock (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static void unlock (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static void toString (string &result)
 
static void foundDeadLock (LockID &current, LockID &other, pthread_mutex_t *otherWaitMutex)
 
static bool deadlockCheck (LockID &current, set< pthread_mutex_t * > &ownMutexs, LockID &other, int recusiveNum)
 
static bool deadlockCheck (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static bool checkLockTimes (pthread_mutex_t *mutex, const char *file, const int line)
 
static void insertLock (pthread_mutex_t *mutex, const long long threadId, const char *file, const int line)
 
static void setMaxBlockThreads (int blockNum)
 

静态 Public 属性

static set< pthread_mutex_t * > mEnableRecurisives
 

静态 Protected 属性

static map< pthread_mutex_t *, LockIDmLocks
 
static map< pthread_mutex_t *, int > mWaitTimes
 
static map< long long, pthread_mutex_t * > mWaitLocks
 
static map< long long, set< pthread_mutex_t * > > mOwnLocks
 
static pthread_rwlock_t mMapMutex = PTHREAD_RWLOCK_INITIALIZER
 
static int mMaxBlockTids = 8
 

该类的文档由以下文件生成: