Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
thread_win.h
Go to the documentation of this file.
1// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_THREAD_WIN_H_
6#define RUNTIME_BIN_THREAD_WIN_H_
7
8#if !defined(RUNTIME_BIN_THREAD_H_)
9#error Do not include thread_win.h directly; use thread.h instead.
10#endif
11
12#include "platform/assert.h"
13#include "platform/globals.h"
14
15namespace dart {
16namespace bin {
17
18typedef DWORD ThreadId;
19
20class MutexData {
21 private:
22 MutexData() {}
23 ~MutexData() {}
24
25 SRWLOCK lock_;
26
27 friend class Mutex;
28
30 DISALLOW_COPY_AND_ASSIGN(MutexData);
31};
32
33class MonitorData {
34 private:
35 MonitorData() {}
36 ~MonitorData() {}
37
38 CRITICAL_SECTION cs_;
39 CONDITION_VARIABLE cond_;
40
41 friend class Monitor;
42
44 DISALLOW_COPY_AND_ASSIGN(MonitorData);
45};
46
47} // namespace bin
48} // namespace dart
49
50#endif // RUNTIME_BIN_THREAD_WIN_H_
friend class Mutex
Definition thread_absl.h:32
pthread_t ThreadId
Definition thread_absl.h:21
#define DISALLOW_ALLOCATION()
Definition globals.h:604
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition globals.h:581
RTL_SRWLOCK SRWLOCK
unsigned long DWORD