Unsafe.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __sun_misc_Unsafe__
  3. #define __sun_misc_Unsafe__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. extern "Java"
  7. {
  8. namespace sun
  9. {
  10. namespace misc
  11. {
  12. class Unsafe;
  13. }
  14. }
  15. }
  16. class sun::misc::Unsafe : public ::java::lang::Object
  17. {
  18. Unsafe();
  19. public:
  20. static ::sun::misc::Unsafe * getUnsafe();
  21. virtual jlong objectFieldOffset(::java::lang::reflect::Field *);
  22. virtual jboolean compareAndSwapInt(::java::lang::Object *, jlong, jint, jint);
  23. virtual jboolean compareAndSwapLong(::java::lang::Object *, jlong, jlong, jlong);
  24. virtual jboolean compareAndSwapObject(::java::lang::Object *, jlong, ::java::lang::Object *, ::java::lang::Object *);
  25. virtual void putOrderedInt(::java::lang::Object *, jlong, jint);
  26. virtual void putOrderedLong(::java::lang::Object *, jlong, jlong);
  27. virtual void putOrderedObject(::java::lang::Object *, jlong, ::java::lang::Object *);
  28. virtual void putIntVolatile(::java::lang::Object *, jlong, jint);
  29. virtual jint getIntVolatile(::java::lang::Object *, jlong);
  30. virtual void putLongVolatile(::java::lang::Object *, jlong, jlong);
  31. virtual void putLong(::java::lang::Object *, jlong, jlong);
  32. virtual jlong getLongVolatile(::java::lang::Object *, jlong);
  33. virtual jlong getLong(::java::lang::Object *, jlong);
  34. virtual void putObjectVolatile(::java::lang::Object *, jlong, ::java::lang::Object *);
  35. virtual void putObject(::java::lang::Object *, jlong, ::java::lang::Object *);
  36. virtual ::java::lang::Object * getObjectVolatile(::java::lang::Object *, jlong);
  37. virtual jint arrayBaseOffset(::java::lang::Class *);
  38. virtual jint arrayIndexScale(::java::lang::Class *);
  39. virtual void unpark(::java::lang::Thread *);
  40. virtual void park(jboolean, jlong);
  41. private:
  42. static ::sun::misc::Unsafe * unsafe;
  43. public:
  44. static ::java::lang::Class class$;
  45. };
  46. #endif // __sun_misc_Unsafe__