MCPcopy Create free account
hub / github.com/Tencent/MMKV / ~ThreadLock

Method ~ThreadLock

Core/ThreadLock.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40ThreadLock::~ThreadLock() {
41 pthread_mutex_unlock(&m_lock);
42
43 pthread_mutex_destroy(&m_lock);
44}
45
46void ThreadLock::lock() {
47 auto ret = pthread_mutex_lock(&m_lock);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected