go-eden / routine

Provides some convenient API, includes Goid(), GetG() and LocalStorage, which is a goroutine's local storage, just like ThreadLocal in other languages.
MIT License
114 stars 20 forks source link

Func getGoidByNative #4

Closed bugaolengdeyuxiaoer closed 2 years ago

bugaolengdeyuxiaoer commented 2 years ago

Env:mac Darwin Kernel Version 20.4.0 arm64 Problem : image

Compare p equals to nil is necessary? pr: https://github.com/go-eden/routine/pull/5

sisyphsu commented 2 years ago

It looks necessary.

Maybe there has something unexpected happens in arm64, i'll try to fix it.

sisyphsu commented 2 years ago

Your pr has been merged, check it in v0.0.2 version~