1
0
mirror of https://github.com/golang/go synced 2024-09-29 23:24:29 -06:00
go/misc/cgo/testcshared
Ian Lance Taylor b687d6a788 misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield
Apparently when GOMAXPROCS == 1 a simple sched_yield in a tight loop is
not necessarily sufficient to permit a signal handler to run. Instead,
sleep for 1/1000 of a second.

Fixes #16649.

Change-Id: I83910144228556e742b7a92a441732ef61aa49d9
Reviewed-on: https://go-review.googlesource.com/33239
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-15 05:35:54 +00:00
..
src runtime: disable a signal by restoring the original disposition 2016-01-05 00:25:50 +00:00
main0.c cmd/go: install headers for c-archive/c-shared cgo exports 2015-05-07 17:39:56 +00:00
main1.c
main2.c misc/cgo/testcshared: use fd 100 instead of fd 10 for back-channel communication 2015-12-05 03:56:23 +00:00
main3.c misc/cgo/testcshared: add a c-shared test for android/arm. 2015-04-24 16:32:31 +00:00
main4.c misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield 2016-11-15 05:35:54 +00:00
main5.c misc/cgo/testcarchive, misc/cgo/testcshared: sleep instead of sched_yield 2016-11-15 05:35:54 +00:00
test.bash all: fix spelling mistakes 2016-04-03 17:03:15 +00:00