Flutter Engine
The Flutter Engine
shared_mutex_posix.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_FML_PLATFORM_POSIX_SHARED_MUTEX_POSIX_H_
6#define FLUTTER_FML_PLATFORM_POSIX_SHARED_MUTEX_POSIX_H_
7
8#include <shared_mutex>
9
10#include "flutter/fml/synchronization/shared_mutex.h"
11
12namespace fml {
13
15 public:
16 virtual void Lock();
17 virtual void LockShared();
18 virtual void Unlock();
19 virtual void UnlockShared();
20
21 private:
24
25 pthread_rwlock_t rwlock_;
26};
27
28} // namespace fml
29
30#endif // FLUTTER_FML_PLATFORM_POSIX_SHARED_MUTEX_POSIX_H_
static SharedMutex * Create()
Definition: ascii_trie.cc:9