func loop_show() { for i := 0; ; i++ { time.Sleep(1000 * 1000 * 1) C.tid() fmt.Println("SHOW:", i) } }
func busy(f chan bool) { runtime.LockOSThread() defer runtime.UnlockOSThread() f <- true fmt.Println("I am f*****g!") fmt.Println("F**k Busy!") C.tid() go canirun() for { } for i := 0; ; i++ { time.Sleep(1000 * 1000 * 1000 * 3) C.tid() fmt.Println("F**k OK!", i) } }
func PrintHello() { C.puts(C.CString("Hello, world\n")) C.f**k() C.tid() }
func canirun() { C.tid() fmt.Println("can i run!") }