< prev index next >

src/share/vm/utilities/semaphore.hpp

Print this page

        

@@ -24,11 +24,10 @@
 
 #ifndef SHARE_VM_UTILITIES_SEMAPHORE_HPP
 #define SHARE_VM_UTILITIES_SEMAPHORE_HPP
 
 #include "memory/allocation.hpp"
-#include "utilities/globalDefinitions.hpp"
 
 #if defined(TARGET_OS_FAMILY_linux) || defined(TARGET_OS_FAMILY_solaris) || defined(TARGET_OS_FAMILY_aix)
 # include "semaphore_posix.hpp"
 #elif defined(TARGET_OS_FAMILY_bsd)
 # include "semaphore_bsd.hpp"

@@ -39,20 +38,18 @@
 #endif
 
 class Semaphore : public CHeapObj<mtInternal> {
  private:
   // Prevent copying and assignment of Semaphore instances.
-  Semaphore(const Semaphore &);
+  Semaphore(const Semaphore&);
   Semaphore& operator=(const Semaphore&);
 
  protected:
   os_semaphore_t _semaphore;
 
  public:
-  static const uint NoMaxCount = (uint)-1;
-
-  Semaphore(uint value = 0, uint max = NoMaxCount);
+  Semaphore(uint value = 0);
   virtual ~Semaphore();
 
   void signal();
   void signal(uint count);
 
< prev index next >