summaryrefslogtreecommitdiffstats
path: root/libjava/include/win32-threads.h
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-21 16:27:14 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-21 16:27:14 +0000
commit6f7c035731a3b7276254e248af4d468fecca80fb (patch)
tree5abd18cf647e081dccc5961d5facf2ff7d4b82e5 /libjava/include/win32-threads.h
parent8ee578c81f0240a72ab314c0bfb3021ca8a2043f (diff)
downloadppe42-gcc-6f7c035731a3b7276254e248af4d468fecca80fb.tar.gz
ppe42-gcc-6f7c035731a3b7276254e248af4d468fecca80fb.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114854 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/win32-threads.h')
-rw-r--r--libjava/include/win32-threads.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h
index 4089b223ddb..b280b8f3969 100644
--- a/libjava/include/win32-threads.h
+++ b/libjava/include/win32-threads.h
@@ -72,6 +72,15 @@ _Jv_ThreadSelf (void)
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.
//
OpenPOWER on IntegriCloud