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

Method Mutex

test/gtest/gtest.h:2503–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2501class Mutex : public MutexBase {
2502 public:
2503 Mutex() {
2504 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL));
2505 has_owner_ = false;
2506 }
2507 ~Mutex() {
2508 GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&mutex_));
2509 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected