| 44 | } |
| 45 | |
| 46 | void ThreadLock::lock() { |
| 47 | auto ret = pthread_mutex_lock(&m_lock); |
| 48 | if (ret != 0) { |
| 49 | MMKVError("fail to lock %p, ret=%d, errno=%s", &m_lock, ret, strerror(errno)); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void ThreadLock::unlock() { |
| 54 | auto ret = pthread_mutex_unlock(&m_lock); |
nothing calls this directly
no outgoing calls
no test coverage detected