File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -5741,11 +5741,23 @@ void Parker::unpark() {
5741
5741
SetEvent (_ParkHandle);
5742
5742
}
5743
5743
5744
+ // Platform Mutex/Monitor implementation
5745
+
5746
+ PlatformMutex::PlatformMutex () {
5747
+ InitializeCriticalSection (&_mutex);
5748
+ }
5749
+
5744
5750
PlatformMutex::~PlatformMutex () {
5745
5751
DeleteCriticalSection (&_mutex);
5746
5752
}
5747
5753
5748
- // Platform Monitor implementation
5754
+ PlatformMonitor::PlatformMonitor () {
5755
+ InitializeConditionVariable (&_cond);
5756
+ }
5757
+
5758
+ PlatformMonitor::~PlatformMonitor () {
5759
+ // There is no DeleteConditionVariable API
5760
+ }
5749
5761
5750
5762
// Must already be locked
5751
5763
int PlatformMonitor::wait (uint64_t millis) {
Original file line number Diff line number Diff line change @@ -61,18 +61,6 @@ inline bool os::numa_has_group_homing() { return false; }
61
61
62
62
// Platform Mutex/Monitor implementation
63
63
64
- inline PlatformMutex::PlatformMutex () {
65
- InitializeCriticalSection (&_mutex);
66
- }
67
-
68
- inline PlatformMonitor::PlatformMonitor () {
69
- InitializeConditionVariable (&_cond);
70
- }
71
-
72
- inline PlatformMonitor::~PlatformMonitor () {
73
- // There is no DeleteConditionVariable API
74
- }
75
-
76
64
inline void PlatformMutex::lock () {
77
65
EnterCriticalSection (&_mutex);
78
66
}
You can’t perform that action at this time.
0 commit comments