Commit graph

16 commits

Author SHA1 Message Date
msaitoh
e723731b98 Upgrade to PTL-2.1.7
Changes:

* fixed: priority queue, used in condition variable, mutex and join,
  might corrupt if multiple threads of different priority are blocking
  on the same queue.

* fixed: fopen() and fdopen() do not unlock the mutex for the stdio.
2000-11-14 02:30:12 +00:00
msaitoh
cb55fe4e04 md5 for ptl-2.1.6 2000-10-31 04:11:08 +00:00
msaitoh
6a9f9caed0 Upgrade to 2.1.5.
Changes:

* Add wait3() and wait4().

* fixed: wait() or waitpid() might not return even after a child
  process exits.

* fixed: bug in close() and pipe().

* fixed: processes might hang up if a signal interrupts within a
  critical region.
2000-09-24 17:14:37 +00:00
msaitoh
ce60d4541f Updated to PTL-2.1.4.
Changes between 2.1.3 and 2.1.4:

* fixed: a bug causes stack overflow if the process is interrupted by
  a UNIX signal frequently.

* fixed: sigwait() causes SIGSEGV.

* deferred cancellation is processed within BSD socket APIs.
2000-07-17 03:35:44 +00:00
msaitoh
441a17f2fc Update to PTL-2.1.3
Changes from 2.1.2:

	* src/mutex.c: Now pthread_mutex_lock() is NOT a cancellation
	point, as POSIX requires.

	* src/sched.c (_pthread_block): check cancellation status before
	making the calling thread block.

	* add call to pthread_testcancel() to a lot of cancellation point
	functions.

	* src/mutex.c, src/cond.c: fixed: mutex and cv chain can be
	corrupted.
2000-06-07 04:28:20 +00:00
msaitoh
c4354bc45b Jump to PTL-2.1.2
Changes between PTL2-current-990622 and PTL-2.1.2

	* support NetBSD/arm32.

	* fix a configure.in bug which fails if $MACHINE != $MACHINE_ARCH.

	* src/io_udp.c (send_timedwait, sendto_timedwait,
 	sendmsg_timedait): While underlying system calls return with
 	EWOULDBLOCK, continue writing.

	* src/signal.c (_pthread_signal_init): On system that PTL can set
 	the stack pointer without using sigstack(), SIGUSR2 can be used
 	for user's purpose.

	* src/internal.h (END_CRITICAL): fixed: signal interruptions are
 	lost in certain situation theoretically.

	* src/io.c: use O_NONBLOCK rather than O_NDELAY in SunOS5.

	* Util/Makefile.in: version number of libPTL.so is changed to 2.0.

	* src/specific.c (pthread_key_create, pthread_setspecific): if
 	fail to allocate the memory, returns ENOMEM.

	* src/cond.c, src/mutex.c, include/sys/types.h: pthread_mutex_t
 	and pthread_cond_t are changed from `pointer to struct' to
 	`struct'.

	* src/cond-attr.c, include/sys/types.h: pthread_condattr_t is
 	changed from integer handle to struct.

	* src/cond.c, src/mutex.c, src/pthread.c:
 	pthread_{mutex_,cond_,}setname_np returns ENOMEM if malloc()
 	returns NULL.

	* src/cancel.c (pthread_setcancelstate): if FLAG_CLEANUP_HANDLER
 	is set, do not call pthread_exit() even if PTHREAD_CANCEL_ENABLE
 	is specified and the thread is already cancel requested.

	(pthread_testcancel): similar to above.

	* src/internal.h (FLAG_CLEANUP_HANDLER): this flag shows that the
 	thread is currently executing cleanup handlers.

	* src/sched.c (after_csw): Clear FLAG_DO_CANCEL flag before
 	executing cleanup handlers to prevent entering executing cleanup
 	handlers loop.

	* src/io.c (_pthread_pdb_iostat): Implement `iostat' command into
 	PDB.
2000-05-07 11:18:19 +00:00
rh
c742e6f2f9 defuzz 1999-11-15 19:16:34 +00:00
msaitoh
72dd01f651 add PTL2-current-990622-patch-5 1999-09-30 13:15:09 +00:00
bad
54a0899079 Pull in patch4 too. Fixes a compile problem on sparc. From Kota Abe. 1999-09-08 16:17:24 +00:00
msaitoh
fb2df0060c upgraded to -patch-3 1999-08-06 17:08:57 +00:00
agc
a910a6fd62 Add package patch-sum files 1999-07-09 13:50:05 +00:00
msaitoh
cd81798b2f upgrade PTL2 to PTL2-current-990622 (with patch-1) 1999-06-23 16:57:07 +00:00
msaitoh
d16c8e4536 PTL2-current-990512-patch-2 1999-05-31 10:13:57 +00:00
msaitoh
eed1199a4d PTL2-current-990512-patch-1 1999-05-20 17:28:31 +00:00
msaitoh
c49c48e186 Upate PTL2 to PTL2-current-990512. 1999-05-12 13:24:26 +00:00
tron
e4e661d09b New "ptl2" package supplied by SAITOH Masanobu in pkg/7212:
This is PTL2 -- Portable Thread Library 2 wrrtten by Kota Abe.
1999-03-29 23:13:56 +00:00