summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/Semaphore.h
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
commit65bf3316cf384588453604be6b4f0ed3751a8b0f (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/java/util/concurrent/Semaphore.h
parent8fc56618a84446beccd45b80381cdfe0e94050df (diff)
downloadgcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/concurrent/Semaphore.h')
-rw-r--r--libjava/java/util/concurrent/Semaphore.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libjava/java/util/concurrent/Semaphore.h b/libjava/java/util/concurrent/Semaphore.h
new file mode 100644
index 00000000000..41755ddcd5f
--- /dev/null
+++ b/libjava/java/util/concurrent/Semaphore.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_util_concurrent_Semaphore__
+#define __java_util_concurrent_Semaphore__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+
+class java::util::concurrent::Semaphore : public ::java::lang::Object
+{
+
+public:
+ Semaphore(jint);
+ Semaphore(jint, jboolean);
+ virtual void acquire();
+ virtual void acquireUninterruptibly();
+ virtual jboolean tryAcquire();
+ virtual jboolean tryAcquire(jlong, ::java::util::concurrent::TimeUnit *);
+ virtual void release();
+ virtual void acquire(jint);
+ virtual void acquireUninterruptibly(jint);
+ virtual jboolean tryAcquire(jint);
+ virtual jboolean tryAcquire(jint, jlong, ::java::util::concurrent::TimeUnit *);
+ virtual void release(jint);
+ virtual jint availablePermits();
+ virtual jint drainPermits();
+public: // actually protected
+ virtual void reducePermits(jint);
+public:
+ virtual jboolean isFair();
+ virtual jboolean hasQueuedThreads();
+ virtual jint getQueueLength();
+public: // actually protected
+ virtual ::java::util::Collection * getQueuedThreads();
+public:
+ virtual ::java::lang::String * toString();
+private:
+ static const jlong serialVersionUID = -3222578661600680210LL;
+ ::java::util::concurrent::Semaphore$Sync * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sync;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_util_concurrent_Semaphore__