src/hotspot/os/posix/os_posix.hpp
changeset 53646 043ae846819f
parent 53461 08d6edeb3145
child 53654 7054249afee5
equal deleted inserted replaced
53645:2c6c0fabe6a2 53646:043ae846819f
   222 
   222 
   223  public:
   223  public:
   224   PlatformParker();
   224   PlatformParker();
   225 };
   225 };
   226 
   226 
       
   227 // Platform specific implementation that underpins VM Monitor/Mutex class
       
   228 class PlatformMonitor : public CHeapObj<mtInternal> {
       
   229  private:
       
   230   pthread_mutex_t _mutex; // Native mutex for locking
       
   231   pthread_cond_t  _cond;  // Native condition variable for blocking
       
   232 
       
   233  public:
       
   234   PlatformMonitor();
       
   235   ~PlatformMonitor();
       
   236   void lock();
       
   237   void unlock();
       
   238   bool try_lock();
       
   239   int wait(jlong millis);
       
   240   void notify();
       
   241   void notify_all();
       
   242 };
       
   243 
   227 #endif // !SOLARIS
   244 #endif // !SOLARIS
   228 
   245 
   229 #endif // OS_POSIX_OS_POSIX_HPP
   246 #endif // OS_POSIX_OS_POSIX_HPP