sirikata/berkelium — pull request #9 by Klaim (2012-02-10 18:16:25+00:00)
Title: Berkelium should check if a glib thread isn't already running

Most applications (like ours) might already have their threads running before initializing Berkelium.

This if is mandatory to avoid a crash if the application did the g_thead_init() before initalizing Berkelium.

I tested this in our application, all seems fine. Also I made sure if it's not Berkelium that initialized the thread, it shouldn't impose the main window title either (like it is doing when it will init the thread itself).