src/hotspot/os/windows/os_windows.hpp
changeset 53646 043ae846819f
parent 53369 55cee96fefec
child 53849 46ef4dea49e5
equal deleted inserted replaced
53645:2c6c0fabe6a2 53646:043ae846819f
   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