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