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]
Other format: [Raw text]

src/winsup/cygwin ChangeLog thread.cc thread.h


CVSROOT:	/cvs/src
Module name:	src
Changes by:	tpfaff at sourceware dot org	2003-03-23 10:52:02

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

Log message:
	* thread.h (class List): Move inline code inside class
	declaration.
	(List::forEach): Change callback parameter to template class
	member functionpointer.
	(pthread_keys::fixup_before_fork): Change to inline. Use
	List::forEach to fixup keys.
	(pthread_keys::fixup_after_fork): Ditto.
	(pthread_keys::runAllDestructors): Ditto.
	(pthread_key::saveAKey): Remove.
	(pthread_key::restoreAKey): Ditto.
	(pthread_key::destroyAKey): Ditto.
	(pthread_key::run_destructor): Rename to runDestructor.
	(pthread_mutex::fixup_after_fork): Change to inline. Use
	List::forEach to fixup mutexes after a fork.
	(pthread_mutex::FixupAfterFork): New method.
	(pthread_mutex::mutexes): New member.
	(pthread_cond::fixup_after_fork): Change to inline. Use
	List::forEach to fixup conds after a fork.
	(pthread_cond::FixupAfterFork): New method.
	(pthread_cond::conds): New member.
	(pthread_rwlock::fixup_after_fork): Change to inline. Use
	List::forEach to fixup rwlocks after a fork.
	(pthread_rwlock::FixupAfterFork): New method.
	(pthread_rwlock::rwlocks): New member.
	(semaphore::fixup_after_fork): Change to inline. Use
	List::forEach to fixup mutexes after a fork.
	(semaphore::FixupAfterFork): New method.
	(semaphore::semaphores): New member.
	(MTinterface::mutexs): Remove.
	(MTinterface::conds): Ditto.
	(MTinterface::rwlocks): Ditto.
	(MTinterface::semaphores): Ditto.
	(pthread_equal): Add extern "C".
	(pthread_mutex_lock): Ditto.
	
	* thread.cc (MTinterface::fixup_after_fork): Change
	fixup_after_fork calls for pthread objects.
	(semaphore::conds): Instantiate.
	(pthread_cond::pthread_cond): Use List::Insert rather than
	custom list code.
	(pthread_cond::~pthread_cond): Use List::Remove rather than
	custom list code.
	(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
	(pthread_rwlock::rwlocks): Instantiate.
	(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
	custom list code.
	(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
	custom list code.
	(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
	(pthread_key::saveAKey): Remove.
	(pthread_key::fixup_before_fork): Ditto.
	(pthread_key::restoreAKey): Ditto.
	(pthread_key::fixup_after_fork): Ditto.
	(pthread_key::destroyAKey): Ditto.
	(pthread_key::runAllDestructors): Ditto.
	(pthread_key::run_destructor): Rename to runDestructor.
	(pthread_mutex::mutexes): Instantiate.
	(pthread_mutex::pthread_mutex): Use List::Insert rather than
	custom list code.
	(pthread_mutex::~pthread_mutex): Use List::Remove rather than
	custom list code.
	(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
	(semaphore::conds): Instantiate.
	(semaphore::semaphore): Use List::Insert rather than custom list
	code.
	(semaphores::~semaphore): Use List::Remove rather than custom
	list code.
	(semaphore::fixup_after_fork): Rename to FixupAfterFork.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.1835&r2=1.1836
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.119&r2=1.120
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.h.diff?cvsroot=src&r1=1.64&r2=1.65


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