MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / lock

Method lock

Engine/source/platformSDL/threads/mutex.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool Mutex::lock(bool block)
49{
50 if(mData == NULL)
51 return false;
52 if(block)
53 {
54 return SDL_LockMutex(mData->mutex) == 0;
55 }
56 else
57 {
58 return SDL_TryLockMutex(mData->mutex) == 0;
59 }
60}
61
62void Mutex::unlock()
63{

Callers 6

_updateScreenGeometryMethod · 0.45
postEffect.cppFile · 0.45
reserveMethod · 0.45
removeMethod · 0.45
activateMethod · 0.45
resolveMethod · 0.45

Calls 2

SDL_LockMutexFunction · 0.50
SDL_TryLockMutexFunction · 0.50

Tested by

no test coverage detected