summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/locks/ReentrantReadWriteLock.h
blob: e7da50a750b391dc8d4ba2a0606010dc6276beae (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
50
51
52
53
54
55
56
57
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_concurrent_locks_ReentrantReadWriteLock__
#define __java_util_concurrent_locks_ReentrantReadWriteLock__

#pragma interface

#include <java/lang/Object.h>

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

public:
  ReentrantReadWriteLock();
  ReentrantReadWriteLock(jboolean);
  virtual ::java::util::concurrent::locks::ReentrantReadWriteLock$WriteLock * ReentrantReadWriteLock$writeLock();
  virtual ::java::util::concurrent::locks::ReentrantReadWriteLock$ReadLock * ReentrantReadWriteLock$readLock();
  virtual jboolean isFair();
public: // actually protected
  virtual ::java::lang::Thread * getOwner();
public:
  virtual jint getReadLockCount();
  virtual jboolean isWriteLocked();
  virtual jboolean isWriteLockedByCurrentThread();
  virtual jint getWriteHoldCount();
  virtual jint getReadHoldCount();
public: // actually protected
  virtual ::java::util::Collection * getQueuedWriterThreads();
  virtual ::java::util::Collection * getQueuedReaderThreads();
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();
  virtual ::java::util::concurrent::locks::Lock * readLock();
  virtual ::java::util::concurrent::locks::Lock * writeLock();
public: // actually package-private
  static ::java::util::concurrent::locks::ReentrantReadWriteLock$Sync * access$2(::java::util::concurrent::locks::ReentrantReadWriteLock *);
private:
  static const jlong serialVersionUID = -6992448646407690164LL;
  ::java::util::concurrent::locks::ReentrantReadWriteLock$ReadLock * __attribute__((aligned(__alignof__( ::java::lang::Object)))) readerLock;
  ::java::util::concurrent::locks::ReentrantReadWriteLock$WriteLock * writerLock;
  ::java::util::concurrent::locks::ReentrantReadWriteLock$Sync * sync;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_locks_ReentrantReadWriteLock__