]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: correct pthread_xxx_init semantics
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 7 Feb 2011 21:44:09 +0000 (16:44 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 11 Feb 2011 04:08:27 +0000 (20:08 -0800)
commit968aa2042cb3834cefd39db852999d23649ea080
treeab2fd314c1780f43d0173224d9532480953dd15c
parent006260b8b0794b20ce83e466bae23518249f1d6f
Windows: correct pthread_xxx_init semantics

pthread lock and conditional initialization semantics
do not require that the lock structure be zeroed before
pthread_xxxx_init() functions are called.  Since the Windows
CriticalSection initialization does require that the memory
be zeroed, the pthread_xxxx_init() functions must zero the
memory just in case before performing the CriticalSection
initialization.

Reviewed-on: http://gerrit.openafs.org/3904
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit ae11ef7898ecffe8eb2a38151602572c24e32a76)

Change-Id: I71092131183daa0627c21c328bd5e5bf182a0fc2
Reviewed-on: http://gerrit.openafs.org/3915
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/WINNT/pthread/pthread.c