去没有身体的功能,我在哪里可以找到它的实现

时间:2018-04-04 06:43:06

标签: function go implementation

当我在go中探索互斥锁功能实现时。

func (m *Mutex) Lock()

我找到了一个在没有函数体的情况下调用的函数。

func runtime_canSpin(i int) bool   // in sync/runtime.go
func runtime_doSpin()

我想找到代码并使用这些方法登录。 但我只能在https://golang.org/ref/spec#Function_declarations

中找到类似的内容
A function declaration may omit the body. Such a declaration provides the signature for a function implemented outside Go, such as an assembly routine.

我该怎么做才能找到隐藏的代码?

0 个答案:

没有答案