GTK+3 multithreading
问题 I have a program (written in C, currently running on Mac OS X 10.8.4) that simulates a world and updates the world's state multiple times per second. At startup this program creates a background thread which creates a simple GTK window and calls gtk_main . After each time the world's state is updated (in the main thread), I would like the window to reflect that change. My first approach was to simply update the GTK widgets after the world was updated, but because that was in a different