You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/deps/re2/mutex.h.patch

21 lines
961 B

111,115c111,115
< void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); }
< void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
< bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; }
< void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock(&mutex_)); }
< void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock(&mutex_)); }
---
> void Mutex::Lock() { }
> void Mutex::Unlock() { }
> bool Mutex::TryLock() { return 0 == 0; }
> void Mutex::ReaderLock() { }
> void Mutex::ReaderUnlock() { }
125,127c125,127
< void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock(&mutex_)); }
< void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock(&mutex_)); }
< bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; }
---
> void Mutex::Lock() { }
> void Mutex::Unlock() { }
> bool Mutex::TryLock() { return 0 == 0; }