MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / Unlock

Method Unlock

tests/gtest/gtest-all.cc:10068–10075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10066}
10067
10068void Mutex::Unlock() {
10069 ThreadSafeLazyInit();
10070 // We don't protect writing to owner_thread_id_ here, as it's the
10071 // caller's responsibility to ensure that the current thread holds the
10072 // mutex when this is called.
10073 owner_thread_id_ = 0;
10074 ::LeaveCriticalSection(critical_section_);
10075}
10076
10077// Does nothing if the current thread holds the mutex. Otherwise, crashes
10078// with high probability.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected