< prev index next >

src/hotspot/os/windows/os_windows.hpp

Print this page

        

*** 185,222 **** guarantee (_ParkEvent != NULL, "invariant") ; } } ; ! // Platform specific implementations that underpin VM Mutex/Monitor classes ! ! class PlatformMutex : public CHeapObj<mtSynchronizer> { ! // Disable copying ! PlatformMutex(const PlatformMutex&); ! PlatformMutex& operator=(const PlatformMutex&); ! ! protected: ! CRITICAL_SECTION _mutex; // Native mutex for locking ! ! public: ! PlatformMutex(); ! ~PlatformMutex(); ! void lock(); ! void unlock(); ! bool try_lock(); ! }; ! ! class PlatformMonitor : public PlatformMutex { private: CONDITION_VARIABLE _cond; // Native condition variable for blocking - // Disable copying - PlatformMonitor(const PlatformMonitor&); - PlatformMonitor& operator=(const PlatformMonitor&); public: PlatformMonitor(); ~PlatformMonitor(); int wait(jlong millis); void notify(); void notify_all(); }; --- 185,206 ---- guarantee (_ParkEvent != NULL, "invariant") ; } } ; ! // Platform specific implementation that underpins VM Monitor/Mutex class ! class PlatformMonitor : public CHeapObj<mtSynchronizer> { 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(); };
< prev index next >