5#include "flutter/fml/platform/posix/shared_mutex_posix.h"
7#include "flutter/fml/logging.h"
15SharedMutexPosix::SharedMutexPosix() {
16 FML_CHECK(pthread_rwlock_init(&rwlock_,
nullptr) == 0);
20 pthread_rwlock_wrlock(&rwlock_);
24 pthread_rwlock_rdlock(&rwlock_);
28 pthread_rwlock_unlock(&rwlock_);
32 pthread_rwlock_unlock(&rwlock_);
virtual void LockShared()
virtual void UnlockShared()
static SharedMutex * Create()
#define FML_CHECK(condition)