Flutter Engine
The Flutter Engine
fml
synchronization
shared_mutex_std.cc
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
#include "flutter/fml/synchronization/shared_mutex_std.h"
6
7
namespace
fml
{
8
9
SharedMutex*
SharedMutex::Create
() {
10
return
new
SharedMutexStd();
11
}
12
13
void
SharedMutexStd::Lock
() {
14
mutex_.lock();
15
}
16
17
void
SharedMutexStd::LockShared
() {
18
mutex_.lock_shared();
19
}
20
21
void
SharedMutexStd::Unlock
() {
22
mutex_.unlock();
23
}
24
25
void
SharedMutexStd::UnlockShared
() {
26
mutex_.unlock_shared();
27
}
28
29
}
// namespace fml
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::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