< prev index next >

src/hotspot/os/bsd/semaphore_bsd.hpp

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

@@ -23,10 +23,12 @@
  */
 
 #ifndef OS_BSD_SEMAPHORE_BSD_HPP
 #define OS_BSD_SEMAPHORE_BSD_HPP
 
+#include "utilities/macros.hpp"
+
 #ifndef __APPLE__
 // Use POSIX semaphores.
 # include "semaphore_posix.hpp"
 
 #else

@@ -35,13 +37,11 @@
 # include <mach/semaphore.h>
 
 class OSXSemaphore : public CHeapObj<mtInternal>{
   semaphore_t _semaphore;
 
-  // Prevent copying and assignment.
-  OSXSemaphore(const OSXSemaphore&);
-  OSXSemaphore& operator=(const OSXSemaphore&);
+  NONCOPYABLE(OSXSemaphore);
 
  public:
   OSXSemaphore(uint value = 0);
   ~OSXSemaphore();
 
< prev index next >