MCPcopy Create free account
hub / github.com/Tencent/phxsql / LockManager

Method LockManager

include/phxcomm/lock_manager.h:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class LockManager {
18 public:
19 LockManager(pthread_mutex_t *mutex) {
20 mutex_ = mutex;
21 pthread_mutex_lock(mutex_);
22 }
23 ~LockManager() {
24 pthread_mutex_unlock(mutex_);
25 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected