Flutter Engine
The Flutter Engine
fml
synchronization
shared_mutex_std.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_SYNCHRONIZATION_SHARED_MUTEX_STD_H_
6
#define FLUTTER_FML_SYNCHRONIZATION_SHARED_MUTEX_STD_H_
7
8
#include "flutter/fml/synchronization/shared_mutex.h"
9
10
#include <shared_mutex>
11
12
namespace
fml
{
13
14
class
SharedMutexStd
:
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
SharedMutexStd
() =
default
;
24
25
std::shared_timed_mutex mutex_;
26
};
27
28
}
// namespace fml
29
30
#endif
// FLUTTER_FML_SYNCHRONIZATION_SHARED_MUTEX_STD_H_
fml::SharedMutexStd
Definition:
shared_mutex_std.h:14
fml::SharedMutexStd::LockShared
virtual void LockShared()
Definition:
shared_mutex_std.cc:17
fml::SharedMutexStd::Unlock
virtual void Unlock()
Definition:
shared_mutex_std.cc:21
fml::SharedMutexStd::UnlockShared
virtual void UnlockShared()
Definition:
shared_mutex_std.cc:25
fml::SharedMutexStd::Lock
virtual void Lock()
Definition:
shared_mutex_std.cc:13
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