aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2020-10-13 07:17:55 +0000
committerIan Lance Taylor <iant@golang.org>2020-10-14 13:56:01 -0700
commitca56d576241c6783eb36eea526b42c4f3fbf697b (patch)
tree4c2d5a0f1dc34d4a445583b7ba349b51b2ee875e /gcc/config.gcc
parent61a43de58cb6de7212a622060500ad0a0fd94fae (diff)
downloadgcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.zip
gcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.tar.gz
gcc-ca56d576241c6783eb36eea526b42c4f3fbf697b.tar.bz2
runtime: correct semaphore implementation on netbsd
NetBSD's semaphores use the underlying lighweight process mechanism (LWP) on NetBSD, rather than pthreads. This means the m.prodcid needs to be set to the LWP ID rather than the pthread ID in order for unpark notifications to get sent to the right place. Introduce a new getProcID() method that selects the correct ID for the platform. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/261742
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions