MCPcopy Create free account
hub / github.com/beefytech/Beef / Lock

Method Lock

IDEHelper/Compiler/BfSystem.cpp:3910–3928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3908}
3909
3910void BfSystem::Lock(int priority)
3911{
3912#ifdef _DEBUG
3913 if (priority > 0)
3914 {
3915 if (!mSystemLock.TryLock(10))
3916 mSystemLock.Lock();
3917 }
3918 else
3919 mSystemLock.Lock();
3920#else
3921 mSystemLock.Lock();
3922#endif
3923 BF_ASSERT(mSystemLock.mLockCount == 1);
3924 if (mPendingSystemLockPri == priority)
3925 mPendingSystemLockPri = -1;
3926 mCurSystemLockPri = priority;
3927 mCurSystemLockThreadId = BfpThread_GetCurrentId();
3928}
3929
3930void BfSystem::Unlock()
3931{

Callers 9

DoOpenFileMethod · 0.45
CheckNonDebuggerBreakMethod · 0.45
SetHotJumpMethod · 0.45
RequestImageMethod · 0.45
RequestDebugInfoMethod · 0.45
RemoveOldParsersMethod · 0.45
BfSystem_LockFunction · 0.45
RunMethod · 0.45
RunMethod · 0.45

Calls 2

BfpThread_GetCurrentIdFunction · 0.50
TryLockMethod · 0.45

Tested by

no test coverage detected