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

Method GroupStatusCache

phxsqlproxy/group_status_cache.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace phxsqlproxy {
35
36GroupStatusCache::GroupStatusCache(PHXSqlProxyConfig * config, WorkerConfig_t * worker_config) :
37 config_(config), worker_config_(worker_config) {
38 pthread_rwlock_init(&master_mutex_, NULL);
39 pthread_rwlock_init(&membership_mutex_, NULL);
40}
41
42GroupStatusCache::~GroupStatusCache() {
43 pthread_rwlock_destroy(&master_mutex_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected