< prev index next >

src/hotspot/share/runtime/semaphore.hpp

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

*** 24,33 **** --- 24,34 ---- #ifndef SHARE_RUNTIME_SEMAPHORE_HPP #define SHARE_RUNTIME_SEMAPHORE_HPP #include "memory/allocation.hpp" + #include "utilities/macros.hpp" #if defined(LINUX) || defined(SOLARIS) || defined(AIX) # include "semaphore_posix.hpp" #elif defined(BSD) # include "semaphore_bsd.hpp"
*** 41,53 **** // Implements the limited, platform independent Semaphore API. class Semaphore : public CHeapObj<mtSynchronizer> { SemaphoreImpl _impl; ! // Prevent copying and assignment of Semaphore instances. ! Semaphore(const Semaphore&); ! Semaphore& operator=(const Semaphore&); public: Semaphore(uint value = 0) : _impl(value) {} ~Semaphore() {} --- 42,52 ---- // Implements the limited, platform independent Semaphore API. class Semaphore : public CHeapObj<mtSynchronizer> { SemaphoreImpl _impl; ! NONCOPYABLE(Semaphore); public: Semaphore(uint value = 0) : _impl(value) {} ~Semaphore() {}
< prev index next >