Ejemplo n.º 1
0
func loop_show() {

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

	}
}
Ejemplo n.º 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)
	}

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

}