- added dumpinfo into threadobject
authortwisti <none@none>
Fri, 5 Nov 2004 10:00:58 +0000 (10:00 +0000)
committertwisti <none@none>
Fri, 5 Nov 2004 10:00:58 +0000 (10:00 +0000)
- added emacs tailer

src/threads/native/threads.h
threads/nativethread.h

index db55fa4e041d6ff8b020277b804e5fc82379aaa6..1766c98ec3f263551a2f6de320f2a17b7338e390 100644 (file)
@@ -1,11 +1,14 @@
 #ifndef _NATIVETHREAD_H
 #define _NATIVETHREAD_H
 
+#include <semaphore.h>
+
 #include "jni.h"
 #include "nat/java_lang_Object.h"
 #include "nat/java_lang_Throwable.h"
 #include "nat/java_lang_Thread.h"
 #include "nat/java_lang_VMThread.h"
+#include "toolbox/memory.h"
 
 #if defined(__DARWIN__)
 #include <mach/mach.h>
@@ -63,16 +66,28 @@ typedef struct {
 
 typedef java_lang_Thread thread;
 
+
+/* threadobject ****************************************************************
+
+   TODO
+
+*******************************************************************************/
+
 typedef struct _threadobject {
-       java_lang_VMThread o;
-       nativethread info;
-       ExecEnvironment ee;
+       java_lang_VMThread  o;
+       nativethread        info;
+       ExecEnvironment     ee;
+
+       pthread_mutex_t     waitLock;
+       pthread_cond_t      waitCond;
+       bool                interrupted;
+       bool                signaled;
+       bool                isSleeping;
 
-       pthread_mutex_t waitLock;
-       pthread_cond_t waitCond;
-       bool interrupted, signaled, isSleeping;
+       dumpinfo            dumpinfo;       /* dump memory info structure         */
 } threadobject;
 
+
 monitorLockRecord *monitorEnter(threadobject *, java_objectheader *);
 bool monitorExit(threadobject *, java_objectheader *);
 
@@ -122,3 +137,16 @@ void cast_startworld();
 
 #endif /* _NATIVETHREAD_H */
 
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
index db55fa4e041d6ff8b020277b804e5fc82379aaa6..1766c98ec3f263551a2f6de320f2a17b7338e390 100644 (file)
@@ -1,11 +1,14 @@
 #ifndef _NATIVETHREAD_H
 #define _NATIVETHREAD_H
 
+#include <semaphore.h>
+
 #include "jni.h"
 #include "nat/java_lang_Object.h"
 #include "nat/java_lang_Throwable.h"
 #include "nat/java_lang_Thread.h"
 #include "nat/java_lang_VMThread.h"
+#include "toolbox/memory.h"
 
 #if defined(__DARWIN__)
 #include <mach/mach.h>
@@ -63,16 +66,28 @@ typedef struct {
 
 typedef java_lang_Thread thread;
 
+
+/* threadobject ****************************************************************
+
+   TODO
+
+*******************************************************************************/
+
 typedef struct _threadobject {
-       java_lang_VMThread o;
-       nativethread info;
-       ExecEnvironment ee;
+       java_lang_VMThread  o;
+       nativethread        info;
+       ExecEnvironment     ee;
+
+       pthread_mutex_t     waitLock;
+       pthread_cond_t      waitCond;
+       bool                interrupted;
+       bool                signaled;
+       bool                isSleeping;
 
-       pthread_mutex_t waitLock;
-       pthread_cond_t waitCond;
-       bool interrupted, signaled, isSleeping;
+       dumpinfo            dumpinfo;       /* dump memory info structure         */
 } threadobject;
 
+
 monitorLockRecord *monitorEnter(threadobject *, java_objectheader *);
 bool monitorExit(threadobject *, java_objectheader *);
 
@@ -122,3 +137,16 @@ void cast_startworld();
 
 #endif /* _NATIVETHREAD_H */
 
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */