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 cygthread.cc cygth ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	cgf@sourceware.org	2003-12-14 07:09:23

Modified files:
	winsup/cygwin  : ChangeLog cygthread.cc cygthread.h cygtls.h 
	                 dcrt0.cc exceptions.cc fork.cc init.cc 
	                 thread.cc thread.h window.cc 

Log message:
	* cygthread.cc (cygthread::stub): Revert previous change and again subsume
	cygthread::stub2.  Just return from function now since ExitThread is guaranteed
	by automatic _threadinfo wrapper.  Define as per ThreadProc convention.
	(cygthread::stub2): Remove.
	(cygthread::simplestub): Perform similar operations to cygthread::stub.
	(cygthread::simplestub2): Remove.
	* cygthread.h (cygthread::stub): Declare as per ThreadProc convention.
	(cygthread::stub2): Remove declaration.
	(cygthread::simplestub): Declare as per ThreadProc convention.
	(cygthread::simplestub2): Remove declaration.
	* cygtls.h (_threadinfo::call): Define first argument as per ThreadProc
	convention.
	(_threadinfo::call2): Ditto.
	(_tlsbase): Define as char * pointer.
	(_tlstop): New definition.
	(_main_tls): Define here.
	* dcrt0.cc (alloc_stack): Revert previous change which called init_thread since
	information would be overwritten by fork later anyway.
	(dll_crt0_1): Use _tlsbase and _tlstop for setting stack bottom, top.
	* exceptions.cc: Move _main_tls declaration to cygtls.h.
	(_threadinfo::call): Define first argument as per ThreadProc convention.
	(_threadinfo::call2): Call ExitThread with thread function return value.
	(_threadinfo::init_thread): Don't initialize cygtls to zero if input arg is
	NULL.
	* fork.cc (fork_child): Reset _main_tls here.  Reinitialize parts of _my_tls
	after copying data from parent.
	* init.cc (threadfunc_fe): New function.  Front-end for all threads created in
	cygwin processes.
	(munge_threadfunc): New function.
	(dll_entry): Call munge_threadfunc to force the call of a thread wrapper.
	* thread.cc (pthread::thread_init_wrapper): Perform similar operations to
	cygthread::stub.
	(pthread::thread_init_wrapper2): Remove.
	* thread.h (pthread::thread_init_wrapper): Declare as per ThreadProc
	convention.
	(pthread::thread_init_wrapper2): Remove declaration.
	* window.cc (Winmain): Just return from function now since ExitThread is
	guaranteed by automatic _threadinfo wrapper.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.2234&r2=1.2235
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygthread.cc.diff?cvsroot=src&r1=1.39&r2=1.40
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygthread.h.diff?cvsroot=src&r1=1.15&r2=1.16
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.h.diff?cvsroot=src&r1=1.5&r2=1.6
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&r1=1.197&r2=1.198
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=src&r1=1.184&r2=1.185
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fork.cc.diff?cvsroot=src&r1=1.116&r2=1.117
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/init.cc.diff?cvsroot=src&r1=1.21&r2=1.22
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.153&r2=1.154
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.h.diff?cvsroot=src&r1=1.82&r2=1.83
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/window.cc.diff?cvsroot=src&r1=1.27&r2=1.28


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