summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/locks/ReentrantLock.h
blob: 5cac4b27fa2f44450117a3884f0d092173e57fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_concurrent_locks_ReentrantLock__
#define __java_util_concurrent_locks_ReentrantLock__

#pragma interface

#include <java/lang/Object.h>

class java::util::concurrent::locks::ReentrantLock : public ::java::lang::Object
{

public:
  ReentrantLock();
  ReentrantLock(jboolean);
  virtual void lock();
  virtual void lockInterruptibly();
  virtual jboolean tryLock();
  virtual jboolean tryLock(jlong, ::java::util::concurrent::TimeUnit *);
  virtual void unlock();
  virtual ::java::util::concurrent::locks::Condition * newCondition();
  virtual jint getHoldCount();
  virtual jboolean isHeldByCurrentThread();
  virtual jboolean isLocked();
  virtual jboolean isFair();
public: // actually protected
  virtual ::java::lang::Thread * getOwner();
public:
  virtual jboolean hasQueuedThreads();
  virtual jboolean hasQueuedThread(::java::lang::Thread *);
  virtual jint getQueueLength();
public: // actually protected
  virtual ::java::util::Collection * getQueuedThreads();
public:
  virtual jboolean hasWaiters(::java::util::concurrent::locks::Condition *);
  virtual jint getWaitQueueLength(::java::util::concurrent::locks::Condition *);
public: // actually protected
  virtual ::java::util::Collection * getWaitingThreads(::java::util::concurrent::locks::Condition *);
public:
  virtual ::java::lang::String * toString();
private:
  static const jlong serialVersionUID = 7373984872572414699LL;
  ::java::util::concurrent::locks::ReentrantLock$Sync * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sync;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_locks_ReentrantLock__