posix-threads.cc (_Jv_CondWait): Check errno' against EINTR, not
r'.
1999-09-07 Tom Tromey <tromey@cygnus.com> * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR, not `r'. Changed `done_sleeping' to a `bool'. 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu * libjava/posix-threads.cc: Added _Jv_ThreadDataKey. Added FLAG_INTERRUPTED to indicate that a thread was interrupted by another thread, rather than by the GC. (_Jv_CondWait): Prevent premature thread wakeup by GC. (_Jv_InitThreads): Initialize _Jv_ThreadDataKey. * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New function. From-SVN: r29177
This commit is contained in:
parent
d07d525a85
commit
fd59e3a04e
3 changed files with 77 additions and 9 deletions
|
@ -249,6 +249,13 @@ _Jv_ThreadCurrent (void)
|
|||
return (java::lang::Thread *) pthread_getspecific (_Jv_ThreadKey);
|
||||
}
|
||||
|
||||
inline _Jv_Thread_t *
|
||||
_Jv_ThreadCurrentData (void)
|
||||
{
|
||||
extern pthread_key_t _Jv_ThreadDataKey;
|
||||
return (_Jv_Thread_t *) pthread_getspecific (_Jv_ThreadDataKey);
|
||||
}
|
||||
|
||||
inline void
|
||||
_Jv_ThreadYield (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue