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

Method ~Mutex

tests/gtest/gtest-all.cc:10052–10060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10050}
10051
10052Mutex::~Mutex() {
10053 // Static mutexes are leaked intentionally. It is not thread-safe to try
10054 // to clean them up.
10055 if (type_ == kDynamic) {
10056 ::DeleteCriticalSection(critical_section_);
10057 delete critical_section_;
10058 critical_section_ = nullptr;
10059 }
10060}
10061
10062void Mutex::Lock() {
10063 ThreadSafeLazyInit();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected