]> Cypherpunks repositories - gostls13.git/commit
runtime: make runtime·usleep and runtime·osyield callable from cgo callback
authorAram Hăvărneanu <aram@mgk.ro>
Thu, 3 Jul 2014 01:36:05 +0000 (11:36 +1000)
committerDave Cheney <dave@cheney.net>
Thu, 3 Jul 2014 01:36:05 +0000 (11:36 +1000)
commitdf75f082d3f18f859ddbd3d002c711a4ec507948
tree2f2deff9c954b49a09d5463cd002915b501d3551
parent61ccc1f05fe6e79ec79e59166e1a3fa3454ab406
runtime: make runtime·usleep and runtime·osyield callable from cgo callback

runtime·usleep and runtime·osyield fall back to calling an
assembly wrapper for the libc functions in the absence of a m,
so they can be called in cgo callback context.

LGTM=rsc
R=minux.ma, rsc
CC=dave, golang-codereviews
https://golang.org/cl/102620044
src/pkg/runtime/os_solaris.c
src/pkg/runtime/sys_solaris_amd64.s