summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/atomic/AtomicIntegerArray.h
blob: f8db2173f1d991d3c8c364ebeb63935d018ba27f (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_concurrent_atomic_AtomicIntegerArray__
#define __java_util_concurrent_atomic_AtomicIntegerArray__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace sun
  {
    namespace misc
    {
        class Unsafe;
    }
  }
}

class java::util::concurrent::atomic::AtomicIntegerArray : public ::java::lang::Object
{

  jlong rawIndex(jint);
public:
  AtomicIntegerArray(jint);
  AtomicIntegerArray(JArray< jint > *);
  virtual jint length();
  virtual jint get(jint);
  virtual void set(jint, jint);
  virtual void lazySet(jint, jint);
  virtual jint getAndSet(jint, jint);
  virtual jboolean compareAndSet(jint, jint, jint);
  virtual jboolean weakCompareAndSet(jint, jint, jint);
  virtual jint getAndIncrement(jint);
  virtual jint getAndDecrement(jint);
  virtual jint getAndAdd(jint, jint);
  virtual jint incrementAndGet(jint);
  virtual jint decrementAndGet(jint);
  virtual jint addAndGet(jint, jint);
  virtual ::java::lang::String * toString();
private:
  static const jlong serialVersionUID = 2862133569453604235LL;
  static ::sun::misc::Unsafe * unsafe;
  static jint base;
  static jint scale;
  JArray< jint > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) array;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_atomic_AtomicIntegerArray__