MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / lock

Method lock

core/core_bind.cpp:1457–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1455////// Mutex //////
1456
1457void Mutex::lock() {
1458 mutex.lock();
1459}
1460
1461bool Mutex::try_lock() {
1462 return mutex.try_lock();

Callers 5

_threadMethod · 0.45
_iterateMethod · 0.45
ThreadWorkMethod · 0.45
thread_wait_for_workMethod · 0.45
main_wait_for_doneMethod · 0.45

Calls

no outgoing calls

Tested by 3

ThreadWorkMethod · 0.36
thread_wait_for_workMethod · 0.36
main_wait_for_doneMethod · 0.36