MCPcopy Create free account
hub / github.com/apache/singa / Lock

Method Lock

test/gtest/gtest.h:2446–2450  ·  view source on GitHub ↗

Acquires this mutex.

Source from the content-addressed store, hash-verified

2444 public:
2445 // Acquires this mutex.
2446 void Lock() {
2447 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_));
2448 owner_ = pthread_self();
2449 has_owner_ = true;
2450 }
2451
2452 // Releases this mutex.
2453 void Unlock() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected