< prev index next >
src/hotspot/share/runtime/semaphore.hpp
Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi
@@ -24,10 +24,11 @@
#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,13 +42,11 @@
// 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&);
+ NONCOPYABLE(Semaphore);
public:
Semaphore(uint value = 0) : _impl(value) {}
~Semaphore() {}
< prev index next >