* include/win32-threads.h (_Jv_ThreadDesc_t): New typedef.
(_Jv_GetPlatformThreadID): New function.
* include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
(_Jv_GetPlatformThreadID): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114854
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-06-21 Bryce McKinlay <mckinlay@redhat.com>
+
+ * include/win32-threads.h (_Jv_ThreadDesc_t): New typedef.
+ (_Jv_GetPlatformThreadID): New function.
+ * include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
+ (_Jv_GetPlatformThreadID): New function.
+
2006-06-20 Bryce McKinlay <mckinlay@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
typedef void _Jv_ThreadStartFunc (java::lang::Thread *);
-
// Condition Variables used to implement wait/notify/sleep/interrupt.
typedef struct
{
return (mu->owner != pthread_self());
}
+// Type identifying a POSIX thread.
+typedef pthread_t _Jv_ThreadDesc_t;
+
+inline _Jv_ThreadDesc_t
+_Jv_GetPlatformThreadID(_Jv_Thread_t *t)
+{
+ return t->thread;
+}
+
//
// Condition variables.
//
typedef void _Jv_ThreadStartFunc (java::lang::Thread *);
+// Type identifying a win32 thread.
+typedef HANDLE _Jv_ThreadDesc_t;
+
+inline _Jv_ThreadDesc_t
+_Jv_GetPlatformThreadID(_Jv_Thread_t *t)
+{
+ return t->handle;
+}
+
//
// Condition variables.
//