OpenAFS CVS Commit: openafs/src/WINNT/pthread by jaltman

Mon, 24 Apr 2006 10:25:12 EDT

Update of /cvs/openafs/src/WINNT/pthread
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/pthread

Modified Files:
	pthread.c pthread.def 
Log Message:
DELTA windows-pthread-cleanup-20060424

A number of crash reports have been filed with Microsoft in afspthread.dll.
The crashes are occuring as the processes are terminating.  In order to 
attempt to address this problem this patch adds support for a DllMain()
entry point that is used to cleanup Thread Local Storage and the various
RX queues.  One theory is that processes are loading and unloading DLLs
that are linked to afspthread.dll leaving the pthread data in a very 
inconsistent state after each unload.  By cleaning up the static data
during the unload, if afspthread is loading again it will be forced to 
initialize the data once again.

--- DELTA config follows ---
windows-pthread-cleanup-20060424 openafs/src/WINNT/pthread/pthread.c 1.10 1.11
windows-pthread-cleanup-20060424 openafs/src/WINNT/pthread/pthread.def 1.1 1.2