]> Cypherpunks repositories - gostls13.git/commit
runtime: implement darwin raise with pthread_self and pthread_kill
authorElias Naur <elias.naur@gmail.com>
Mon, 30 Apr 2018 23:21:02 +0000 (01:21 +0200)
committerElias Naur <elias.naur@gmail.com>
Tue, 1 May 2018 00:37:36 +0000 (00:37 +0000)
commitc2fdb42b1632b054d382b05ebfb6cb903dbb9531
tree0c166c4b0a09c848e4e0b50fac8d537d66c834e0
parent21656d09b710799806aee182856b2a02068609bd
runtime: implement darwin raise with pthread_self and pthread_kill

Convert raise from raw syscalls to using the system pthread library.
As a bonus, raise will now target the current thread instead of the
process.

Updates #17490

Change-Id: I2e44f2000bf870e99a5b4dc5ff5e0799fba91bde
Reviewed-on: https://go-review.googlesource.com/110475
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s