示例#1
0
func loop_show() {

	for i := 0; ; i++ {
		time.Sleep(1000 * 1000 * 1)
		C.tid()
		fmt.Println("SHOW:", i)

	}
}
示例#2
0
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)
	}

}
示例#3
0
func PrintHello() {
	C.puts(C.CString("Hello, world\n"))
	C.f**k()
	C.tid()
}
示例#4
0
func canirun() {
	C.tid()
	fmt.Println("can i run!")

}