Fixed a potential race condition in tMPI_Thread_create()
authorSander Pronk <pronk@kth.se>
Tue, 21 May 2013 13:33:18 +0000 (15:33 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 24 May 2013 17:35:04 +0000 (19:35 +0200)
commite4229dee8061c31e2273c32332aa298ac0919c83
tree98e4600d60b59db8b09b14b95917943fac4dfa85
parent76e73a6c038aa96204ae8ca89e5c0d20ffcb47f3
Fixed a potential race condition in tMPI_Thread_create()

The pthreads version of tMPI_Thread_create contained a potential race
condition where the tMPI_Thread_t structure may not be fully populated
as the child thread starts.

Refs #1254

Change-Id: I86e8faaa3d27b88269257be8d7df66ef728dbb0d
src/gmxlib/thread_mpi/pthreads.c