Flutter Engine
The Flutter Engine
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
7namespace fml {
8
9SharedMutex* SharedMutex::Create() {
10 return new SharedMutexStd();
11}
12
14 mutex_.lock();
15}
16
18 mutex_.lock_shared();
19}
20
22 mutex_.unlock();
23}
24
26 mutex_.unlock_shared();
27}
28
29} // namespace fml
virtual void LockShared()
virtual void Unlock()
virtual void UnlockShared()
static SharedMutex * Create()
Definition: ascii_trie.cc:9