src/hotspot/os/posix/semaphore_posix.hpp
changeset 53461 08d6edeb3145
parent 53244 9807daeb47c4
equal deleted inserted replaced
53460:65c813da7c65 53461:08d6edeb3145
    43   void signal(uint count = 1);
    43   void signal(uint count = 1);
    44 
    44 
    45   void wait();
    45   void wait();
    46 
    46 
    47   bool trywait();
    47   bool trywait();
       
    48   // wait until the given absolute time is reached
    48   bool timedwait(struct timespec ts);
    49   bool timedwait(struct timespec ts);
       
    50   // wait until the given relative time elapses
       
    51   bool timedwait(int64_t millis);
    49 };
    52 };
    50 
    53 
    51 typedef PosixSemaphore SemaphoreImpl;
    54 typedef PosixSemaphore SemaphoreImpl;
    52 
    55 
    53 #endif // OS_POSIX_SEMAPHORE_POSIX_HPP
    56 #endif // OS_POSIX_SEMAPHORE_POSIX_HPP