MCPcopy Create free account
hub / github.com/HelenOS/helenos / __cxa_guard_acquire

Function __cxa_guard_acquire

uspace/lib/cpp/src/__bits/runtime.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 std::mutex static_guard_mtx{};
134
135 extern "C" int __cxa_guard_acquire(guard_t* guard)
136 {
137 static_guard_mtx.lock();
138
139 return !*((std::uint8_t*)guard);
140 }
141
142 extern "C" void __cxa_guard_release(guard_t* guard)
143 {

Callers

nothing calls this directly

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected