summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/atomic/AtomicLong.h
blob: 0d0c3b00f3eaacc85bc2a46735caef4a4ff3f5f7 (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_atomic_AtomicLong__
#define __java_util_concurrent_atomic_AtomicLong__

#pragma interface

#include <java/lang/Number.h>
extern "Java"
{
  namespace sun
  {
    namespace misc
    {
        class Unsafe;
    }
  }
}

class java::util::concurrent::atomic::AtomicLong : public ::java::lang::Number
{

  static jboolean VMSupportsCS8();
public:
  AtomicLong(jlong);
  AtomicLong();
  virtual jlong get();
  virtual void set(jlong);
  virtual void lazySet(jlong);
  virtual jlong getAndSet(jlong);
  virtual jboolean compareAndSet(jlong, jlong);
  virtual jboolean weakCompareAndSet(jlong, jlong);
  virtual jlong getAndIncrement();
  virtual jlong getAndDecrement();
  virtual jlong getAndAdd(jlong);
  virtual jlong incrementAndGet();
  virtual jlong decrementAndGet();
  virtual jlong addAndGet(jlong);
  virtual ::java::lang::String * toString();
  virtual jint intValue();
  virtual jlong longValue();
  virtual jfloat floatValue();
  virtual jdouble doubleValue();
private:
  static const jlong serialVersionUID = 1927816293512124184LL;
  static ::sun::misc::Unsafe * unsafe;
  static jlong valueOffset;
public: // actually package-private
  static jboolean VM_SUPPORTS_LONG_CAS;
private:
  jlong volatile __attribute__((aligned(__alignof__( ::java::lang::Number)))) value;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_atomic_AtomicLong__