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

Method Lock

tests/gtest/gtest.h:1909–1913  ·  view source on GitHub ↗

Acquires this mutex.

Source from the content-addressed store, hash-verified

1907 public:
1908 // Acquires this mutex.
1909 void Lock() {
1910 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_));
1911 owner_ = pthread_self();
1912 has_owner_ = true;
1913 }
1914
1915 // Releases this mutex.
1916 void Unlock() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected