various fixes for race conditions under threads: mutex locks based
authorGurusamy Sarathy <gsar@cpan.org>
Sun, 29 Nov 1998 12:40:28 +0000 (12:40 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 29 Nov 1998 12:40:28 +0000 (12:40 +0000)
commitb099ddc068b2498767e6f04ac167d9633b895ec4
treec5565911f062bddb5d68139f8aed5d8489d2a488
parentbfc605f9e1d41dd7493c0c0fcfd1304c238dbe4d
various fixes for race conditions under threads: mutex locks based
on PL_threadnum were seriously flawed, since it means more than one
thread could enter the critical region; PL_na was global instead of
thread-local; child thread could finish and free thr structures
before Thread->new() got around to creating the Thread object;
cv_clone() needed locking, as it mucks with PL_comppad and other
global data; new_struct_thread() needed to lock template-thread's
mutex while copying its data

p4raw-id: //depot/perl@2385
embedvar.h
ext/Thread/Thread.xs
gv.c
op.c
perl.c
perlvars.h
pp_hot.c
thrdvar.h
thread.h
util.c
win32/win32thread.c