Hello. I have a Go program that calls C functions in order to create a Gtk+ 
GUI. Because Gtk+ itself isn't thread-safe, I'm wondering if it's even 
possible to write GUI apps this way since there's no guarantee that the 
same thread will be used to call the API (even if I lock the main goroutine 
inside a OS thread). Am I correct?

Also, what happens if the called CGO function calls a Go function? Can it 
happen that the Go runtime will create a new thread, because the previous 
one is still locked? 

Greets,
Luka

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to