aboutsummaryrefslogtreecommitdiff
path: root/libjava/posix-threads.cc
AgeCommit message (Collapse)AuthorFilesLines
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey1-1/+1
From-SVN: r31504
1999-12-24natObject.cc (notify): Throw message with IllegalMonitorStateException.Bryce McKinlay1-55/+71
1999-12-22 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natObject.cc (notify): Throw message with IllegalMonitorStateException. (notifyAll): Ditto. (wait): Ditto. * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag. (isInterrupted_): New function, which does clear interrupt_flag. (interrupt): Use `isInterrupted_'. * java/lang/natThread.cc (interrupt): Add comment. (join): Set `Prev' in joiner loop. Change various calls to `isInterrupted' to use `isInterrupted_'. * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait on linux. Set result to 0 on an interrupt. Test interrupted status of java Thread object directly. FLAG_INTERRUPTED: removed. (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails. (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED. (_Jv_InitThreads): Don't block SIGINT. (_Jv_ThreadWait): Don't configure SIGINT handler. From-SVN: r31082
1999-11-30re GNATS libgcj/98 (pthread_mutex_init in libjava/posix-threads.cc)Tom Tromey1-1/+4
* posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get mutex to initialize. Initialize `count' if required. Fixes PR libgcj/98. From-SVN: r30725
1999-11-04quick-threads.h (_Jv_ThreadCancel): Removed.Tom Tromey1-23/+0
* include/quick-threads.h (_Jv_ThreadCancel): Removed. (_Jv_ThreadDestroy): Likewise. * include/no-threads.h (_Jv_ThreadCancel): Removed. (_Jv_ThreadDestroy): Likewise. * include/posix-threads.h (struct _Jv_Thread_t): Removed `exception' field. (_Jv_ThreadCancel): Removed decl. (_Jv_ThreadDestroy): Removed. * posix-threads.cc (_Jv_ThreadCancel): Removed. (throw_cleanup): Removed. (really_start): Don't push or pop cleanup. (_Jv_ThreadInitData): Don't initialize `exception' field. * java/lang/Thread.java (stop): Officially unimplemented. * java/lang/natThread.cc (stop): Officially unimplemented. From-SVN: r30392
1999-11-03posix-threads.cc: Don't include boehm-config.h.Bryce McKinlay1-0/+1
1999-11-02 Bryce McKinlay <bryce@albatross.co.nz> * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h instead. From-SVN: r30365
1999-11-03posix-threads.cc: Don't include boehm-config.h.Bryce McKinlay1-1/+0
1999-11-02 Bryce McKinlay <bryce@albatross.co.nz> * posix-threads.cc: Don't include boehm-config.h. From-SVN: r30361
1999-09-10configure: Rebuilt.Tom Tromey1-1/+1
* configure: Rebuilt. * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. From-SVN: r29278
1999-09-08posix-threads.cc (_Jv_CondWait): pthread_ calls return error code and don't ↵Tom Tromey1-3/+3
set errno. * posix-threads.cc (_Jv_CondWait): pthread_ calls return error code and don't set errno. From-SVN: r29179
1999-09-08posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR, not `r'.Tom Tromey1-9/+55
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
1999-09-01posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.Tom Tromey1-6/+1
* posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex. * include/posix-threads.h (_Jv_Mutex_t): Define as structure, except on Linux. (_Jv_PthreadGetMutex): New function. (_Jv_PthreadCheckMonitor): Use it. (_Jv_MutexInit): Likewise. ALso, initialize `count'. (_Jv_MutexLock): Update `count'. (_Jv_MutexUnlock): Likewise. (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when appropriate. From-SVN: r29032
1999-09-01posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.Tom Tromey1-0/+5
* posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor. * include/posix-threads.h (_Jv_PthreadCheckMonitor): New function. (_Jv_CondNotify): Use it. (_Jv_CondNotifyAll): Likewise. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling. From-SVN: r29030
1999-08-25* posix-threads.cc: Include <errno.h>.Bryce McKinlay1-0/+1
From-SVN: r28831
1999-08-24boehm.cc: Undefine TRUE and FALSE.Tom Tromey1-1/+1
* boehm.cc: Undefine TRUE and FALSE. * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME. From-SVN: r28810
1999-08-22re GNATS libgcj/40 (wait(timeout) wrongly throws IllegalMonitorState exception)Tom Tromey1-0/+3
* posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal result. PR 40. From-SVN: r28799
1999-06-14* posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.Bryce McKinlay1-6/+5
From-SVN: r27524
1999-04-07Initial revisionTom Tromey1-0/+360
From-SVN: r26263