Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chen3feng/toft
/ RecursiveLocking
Function
RecursiveLocking
system/threading/mutex_test.cpp:46–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
45
template <typename Type>
46
void RecursiveLocking()
47
{
48
Type mutex;
49
mutex.Lock();
50
mutex.Lock();
51
mutex.Unlock();
52
mutex.Unlock();
53
}
54
55
56
TEST(MutexDeathTest, SelfDeadLock)
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected