equal
deleted
inserted
replaced
185 guarantee (_ParkEvent != NULL, "invariant") ; |
185 guarantee (_ParkEvent != NULL, "invariant") ; |
186 } |
186 } |
187 |
187 |
188 } ; |
188 } ; |
189 |
189 |
|
190 // Platform specific implementation that underpins VM Monitor/Mutex class |
|
191 class PlatformMonitor : public CHeapObj<mtInternal> { |
|
192 private: |
|
193 CRITICAL_SECTION _mutex; // Native mutex for locking |
|
194 CONDITION_VARIABLE _cond; // Native condition variable for blocking |
|
195 |
|
196 public: |
|
197 PlatformMonitor(); |
|
198 ~PlatformMonitor(); |
|
199 void lock(); |
|
200 void unlock(); |
|
201 bool try_lock(); |
|
202 int wait(jlong millis); |
|
203 void notify(); |
|
204 void notify_all(); |
|
205 }; |
|
206 |
190 #endif // OS_WINDOWS_OS_WINDOWS_HPP |
207 #endif // OS_WINDOWS_OS_WINDOWS_HPP |