MCPcopy Create free account
hub / github.com/Tencent/MMKV / registerHandler

Method registerHandler

Core/MMKV.cpp:1586–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1584// callbacks
1585
1586void MMKV::registerHandler(mmkv::MMKVHandler *handler) {
1587 if (!g_instanceLock) {
1588 return;
1589 }
1590 SCOPED_LOCK(g_instanceLock);
1591 g_handler = handler;
1592}
1593
1594void MMKV::unRegisterHandler() {
1595 if (!g_instanceLock) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected