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
This commit is contained in:
parent
75715cf632
commit
86cede157a
3 changed files with 25 additions and 1 deletions
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue