--- a/src/hotspot/os/windows/os_windows.hpp Tue Feb 05 13:21:59 2019 -0500
+++ b/src/hotspot/os/windows/os_windows.hpp Tue Feb 05 15:12:13 2019 -0500
@@ -187,4 +187,21 @@
} ;
+// Platform specific implementation that underpins VM Monitor/Mutex class
+class PlatformMonitor : public CHeapObj<mtInternal> {
+ private:
+ CRITICAL_SECTION _mutex; // Native mutex for locking
+ CONDITION_VARIABLE _cond; // Native condition variable for blocking
+
+ public:
+ PlatformMonitor();
+ ~PlatformMonitor();
+ void lock();
+ void unlock();
+ bool try_lock();
+ int wait(jlong millis);
+ void notify();
+ void notify_all();
+};
+
#endif // OS_WINDOWS_OS_WINDOWS_HPP