Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
bin
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
15
namespace
dart
{
16
namespace
bin {
17
18
typedef
DWORD
ThreadId
;
19
20
class
MutexData {
21
private
:
22
MutexData() {}
23
~MutexData() {}
24
25
SRWLOCK
lock_;
26
27
friend
class
Mutex
;
28
29
DISALLOW_ALLOCATION
();
30
DISALLOW_COPY_AND_ASSIGN
(MutexData);
31
};
32
33
class
MonitorData {
34
private
:
35
MonitorData() {}
36
~MonitorData() {}
37
38
CRITICAL_SECTION cs_;
39
CONDITION_VARIABLE cond_;
40
41
friend
class
Monitor
;
42
43
DISALLOW_ALLOCATION
();
44
DISALLOW_COPY_AND_ASSIGN
(MonitorData);
45
};
46
47
}
// namespace bin
48
}
// namespace dart
49
50
#endif
// RUNTIME_BIN_THREAD_WIN_H_
assert.h
dart::bin::MonitorData::Monitor
friend class Monitor
Definition:
thread_absl.h:49
dart::bin::MutexData::Mutex
friend class Mutex
Definition:
thread_absl.h:32
dart::bin::ThreadId
pthread_t ThreadId
Definition:
thread_absl.h:21
dart
Definition:
dart_vm.cc:33
globals.h
DISALLOW_ALLOCATION
#define DISALLOW_ALLOCATION()
Definition:
globals.h:604
DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition:
globals.h:581
SRWLOCK
RTL_SRWLOCK SRWLOCK
Definition:
windows_types.h:106
DWORD
unsigned long DWORD
Definition:
windows_types.h:22
Generated on Sun Jun 23 2024 21:55:24 for Flutter Engine by
1.9.4