Flutter Engine
The Flutter Engine
fml
platform
posix
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
12
namespace
fml
{
13
14
class
SharedMutexPosix
:
public
SharedMutex
{
15
public
:
16
virtual
void
Lock
();
17
virtual
void
LockShared
();
18
virtual
void
Unlock
();
19
virtual
void
UnlockShared
();
20
21
private
:
22
friend
SharedMutex
*
SharedMutex::Create
();
23
SharedMutexPosix
();
24
25
pthread_rwlock_t rwlock_;
26
};
27
28
}
// namespace fml
29
30
#endif
// FLUTTER_FML_PLATFORM_POSIX_SHARED_MUTEX_POSIX_H_
fml::SharedMutexPosix
Definition:
shared_mutex_posix.h:14
fml::SharedMutexPosix::Lock
virtual void Lock()
Definition:
shared_mutex_posix.cc:19
fml::SharedMutexPosix::Unlock
virtual void Unlock()
Definition:
shared_mutex_posix.cc:27
fml::SharedMutexPosix::LockShared
virtual void LockShared()
Definition:
shared_mutex_posix.cc:23
fml::SharedMutexPosix::UnlockShared
virtual void UnlockShared()
Definition:
shared_mutex_posix.cc:31
fml::SharedMutex
Definition:
shared_mutex.h:11
fml::SharedMutex::Create
static SharedMutex * Create()
Definition:
shared_mutex_posix.cc:11
fml
Definition:
ascii_trie.cc:9
Generated on Sun Jun 23 2024 21:54:58 for Flutter Engine by
1.9.4