< prev index next >

src/hotspot/os/posix/semaphore_posix.hpp

Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi

@@ -24,19 +24,18 @@
 
 #ifndef OS_POSIX_SEMAPHORE_POSIX_HPP
 #define OS_POSIX_SEMAPHORE_POSIX_HPP
 
 #include "memory/allocation.hpp"
+#include "utilities/macros.hpp"
 
 #include <semaphore.h>
 
 class PosixSemaphore : public CHeapObj<mtInternal> {
   sem_t _semaphore;
 
-  // Prevent copying and assignment.
-  PosixSemaphore(const PosixSemaphore&);
-  PosixSemaphore& operator=(const PosixSemaphore&);
+  NONCOPYABLE(PosixSemaphore);
 
  public:
   PosixSemaphore(uint value = 0);
   ~PosixSemaphore();
 
< prev index next >