1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:14:42 -07:00
go/misc/cgo/testcarchive
Ian Lance Taylor a1813ae0a0 misc/cgo/testcarchive: avoid possible pthread_create race
The old code assumed that the thread ID set by pthread_create would be
available in the newly created thread.  While that is clearly true
eventually, it is not necessarily true immediately.  Rather than try to
pass down the thread ID, just call pthread_self in the created thread.

Fixes #15576 (I hope).

Change-Id: Ic07086b00e4fd5676c04719a299c583320da64a1
Reviewed-on: https://go-review.googlesource.com/22880
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-06 19:15:52 +00:00
..
src misc/cgo/testcarchive: more robust TestSignalForwardingExternal 2016-03-26 02:40:12 +00:00
carchive_test.go misc/cgo/testcarchive: don't force -no_pie on Darwin 2016-05-06 15:19:55 +00:00
main2.c misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
main3.c misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
main4.c misc/cgo/testcarchive: avoid possible pthread_create race 2016-05-06 19:15:52 +00:00
main5.c misc/cgo/testcarchive: more robust TestSignalForwardingExternal 2016-03-26 02:40:12 +00:00
main_unix.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main_windows.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00