MCPcopy Create free account
hub / github.com/crownengine/crown / lock

Method lock

src/core/thread/mutex.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void Mutex::lock()
65{
66#if CROWN_PLATFORM_WINDOWS
67 EnterCriticalSection(&_priv->cs);
68#else
69 int err = pthread_mutex_lock(&_priv->mutex);
70 CE_ASSERT(err == 0, "pthread_mutex_lock: errno = %d", err);
71 CE_UNUSED(err);
72#endif
73}
74
75void Mutex::unlock()
76{

Callers 11

waitMethod · 0.45
~ResourceLoaderMethod · 0.45
runMethod · 0.45
compile_internalMethod · 0.45
shutdownMethod · 0.45
sendMethod · 0.45
run_output_threadMethod · 0.45
~SaveGameMethod · 0.45
queue_requestMethod · 0.45
runMethod · 0.45

Calls 1

pthread_mutex_lockFunction · 0.85

Tested by 1

waitMethod · 0.36