This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

src/winsup/cygwin dcrt0.cc fork.cc thread.cc t ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	rbcollins@sources.redhat.com	2001-09-11 01:15:39

Modified files:
	winsup/cygwin  : dcrt0.cc fork.cc thread.cc thread.h ChangeLog 

Log message:
	Tue Sep 11 18:15:00 2001  Robert Collins <rbtcollins@hotmail.com>
	
	* dcrt0.cc (cygwin_finished_initializing): Copy _mtinterf on fork;
	* fork.cc (fork_child): fixup thread-related structures after fork;
	* thread.cc (MTinterface::Init): Initialise the new mutex, condition and semaphore lists.
	(MTinterface::fixup_after_fork): Iterate through each list and fixup the objects.
	(pthread_cond::pthread_cond): Add this to the condition list.
	(pthread_cond::~pthread_cond): Remove this from the condition list.
	(pthread_cond::fixup_after_fork): Recreate as best we can the pre-fork state.
	(pthread_mutex::pthread_mutex): Add this to the mutex list.
	(pthread_mutex::~pthread_mutex): Remove this from the mutex list.
	(pthread_mutex::fixup_after_fork): Recreate as best we can the pre-fork state.
	(semaphore::semaphore): Store the initial value, and add this to the semaphore list.
	(semaphore::~semaphore): Remove this from the semaphore list.
	(semaphore::Post): Increment the current semaphore value.
	(semaphore::TryWait): Decrement the current semaphore value.
	(semaphore::Wait): Ditto.
	(semaphote::fixup_after_fork): Recreate the pre-fork state as best we can.
	* thread.h (pthread_mutex): New members to allow fixup_after_fork.
	(pthread_cond): Ditto.
	(semaphore): Ditto.
	(MTinterface): New list heads for tracking conds and semaphores.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&r1=1.107&r2=1.108
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fork.cc.diff?cvsroot=src&r1=1.61&r2=1.62
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.44&r2=1.45
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.h.diff?cvsroot=src&r1=1.24&r2=1.25
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.873&r2=1.874


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]