sirikata / berkelium

Chromium Embedded in GL/DX (NOTE: No longer maintained!)
http://berkelium.org/
266 stars 48 forks source link

Berkelium should check if a glib thread isn't already running #9

Closed Klaim closed 12 years ago

Klaim commented 12 years ago

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).