aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/win32-threads.h
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2006-06-21 16:27:14 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2006-06-21 17:27:14 +0100
commit86cede157a8875c5f6f1bb395c4213675c6c8cbe (patch)
tree5abd18cf647e081dccc5961d5facf2ff7d4b82e5 /libjava/include/win32-threads.h
parent75715cf63280063d539869489ad0f18e0ad1a1fa (diff)
downloadgcc-86cede157a8875c5f6f1bb395c4213675c6c8cbe.zip
gcc-86cede157a8875c5f6f1bb395c4213675c6c8cbe.tar.gz
gcc-86cede157a8875c5f6f1bb395c4213675c6c8cbe.tar.bz2
win32-threads.h (_Jv_ThreadDesc_t): New typedef.
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. From-SVN: r114854
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 4089b22..b280b8f 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.
//