mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed CheckLockYield while using StackHelper thread
This commit is contained in:
parent
eaed87e1b7
commit
cab9b3d9c7
1 changed files with 1 additions and 3 deletions
|
@ -3725,10 +3725,8 @@ void BfSystem::CheckLockYield()
|
|||
//mHighestYieldTime = BF_MAX(yieldTime, mHighestYieldTime);
|
||||
//mYieldTickCount = curTime;
|
||||
|
||||
if (mPendingSystemLockPri > mCurSystemLockPri)
|
||||
if ((mPendingSystemLockPri > mCurSystemLockPri) && (mCurSystemLockThreadId == BfpThread_GetCurrentId()))
|
||||
{
|
||||
BF_ASSERT(mCurSystemLockThreadId == BfpThread_GetCurrentId());
|
||||
|
||||
int mySystemLockPri = mCurSystemLockPri;
|
||||
BF_ASSERT(mSystemLock.mLockCount == 1);
|
||||
mSystemLock.Unlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue