ThreadGroup.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_lang_ThreadGroup__
  3. #define __java_lang_ThreadGroup__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. class java::lang::ThreadGroup : public ::java::lang::Object
  8. {
  9. ThreadGroup();
  10. public:
  11. ThreadGroup(::java::lang::String *);
  12. ThreadGroup(::java::lang::ThreadGroup *, ::java::lang::String *);
  13. virtual ::java::lang::String * getName();
  14. virtual ::java::lang::ThreadGroup * getParent();
  15. virtual jint getMaxPriority();
  16. virtual jboolean isDaemon();
  17. virtual jboolean isDestroyed();
  18. virtual void setDaemon(jboolean);
  19. virtual void setMaxPriority(jint);
  20. virtual jboolean parentOf(::java::lang::ThreadGroup *);
  21. virtual void checkAccess();
  22. virtual jint activeCount();
  23. virtual jint enumerate(JArray< ::java::lang::Thread * > *);
  24. virtual jint enumerate(JArray< ::java::lang::Thread * > *, jboolean);
  25. virtual jint activeGroupCount();
  26. virtual jint enumerate(JArray< ::java::lang::ThreadGroup * > *);
  27. virtual jint enumerate(JArray< ::java::lang::ThreadGroup * > *, jboolean);
  28. virtual void stop();
  29. virtual void interrupt();
  30. virtual void suspend();
  31. virtual void resume();
  32. virtual void destroy();
  33. virtual void list();
  34. virtual void uncaughtException(::java::lang::Thread *, ::java::lang::Throwable *);
  35. virtual jboolean allowThreadSuspension(jboolean);
  36. virtual ::java::lang::String * toString();
  37. private:
  38. jint enumerate(JArray< ::java::lang::Thread * > *, jint, jboolean);
  39. jint enumerate(JArray< ::java::lang::ThreadGroup * > *, jint, jboolean);
  40. void list(::java::lang::String *);
  41. public: // actually package-private
  42. virtual void addThread(::java::lang::Thread *);
  43. virtual void removeThread(::java::lang::Thread *);
  44. virtual void removeGroup(::java::lang::ThreadGroup *);
  45. static ::java::lang::Thread * getThreadFromId(jlong);
  46. private:
  47. ::java::lang::Thread * getThreadFromIdImpl(jlong);
  48. public: // actually package-private
  49. static ::java::lang::ThreadGroup * root;
  50. static jboolean had_uncaught_exception;
  51. ::java::lang::ThreadGroup * __attribute__((aligned(__alignof__( ::java::lang::Object)))) parent;
  52. ::java::lang::String * name;
  53. private:
  54. ::java::util::Vector * threads;
  55. ::java::util::Vector * groups;
  56. jboolean daemon_flag;
  57. jint maxpri;
  58. public:
  59. static ::java::lang::Class class$;
  60. };
  61. #endif // __java_lang_ThreadGroup__