mirror of
https://github.com/golang/go
synced 2024-11-17 02:14:42 -07:00
a1813ae0a0
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> |
||
---|---|---|
.. | ||
src | ||
carchive_test.go | ||
main2.c | ||
main3.c | ||
main4.c | ||
main5.c | ||
main_unix.c | ||
main_windows.c | ||
main.c |