aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix-threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/include/posix-threads.h')
-rw-r--r--libjava/include/posix-threads.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index fe648b7..41adea3 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -47,7 +47,6 @@ typedef struct _Jv_Thread_t
typedef void _Jv_ThreadStartFunc (java::lang::Thread *);
-
// Condition Variables used to implement wait/notify/sleep/interrupt.
typedef struct
{
@@ -82,6 +81,15 @@ _Jv_MutexCheckMonitor (_Jv_Mutex_t *mu)
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.
//