diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-09-08 00:43:06 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-09-08 00:43:06 +0000 |
commit | fd59e3a04e282342dc4d5ab878a2df37bd44e2a8 (patch) | |
tree | 0340cef1b68eb2b2d979c8dc372792f40a424945 /libjava/include | |
parent | d07d525a85f68646d68a5a2bc6c885894674ebc3 (diff) | |
download | gcc-fd59e3a04e282342dc4d5ab878a2df37bd44e2a8.zip gcc-fd59e3a04e282342dc4d5ab878a2df37bd44e2a8.tar.gz gcc-fd59e3a04e282342dc4d5ab878a2df37bd44e2a8.tar.bz2 |
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
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/posix-threads.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 053a45c..cc8493a 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -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) { |