ThreadExitProc(gpointer WXUNUSED(client), gint fid,
GdkInputCondition WXUNUSED(cond))
{
- wxThread* ptr;
-
- if (fid != p_thrd_pipe[0])
- return;
- if (read(fid, &ptr, sizeof(ptr)) == sizeof(ptr)) {
- //fprintf(stderr, "calling OnExit %p\n", ptr);
- ptr->OnExit();
- } else {
- //fprintf(stderr, "this should never happen\n");
- }
+ wxThread* ptr;
+
+ // printf( "thread exit proc.\n" );
+
+ if (fid != p_thrd_pipe[0])
+ return;
+
+ if (read(fid, &ptr, sizeof(ptr)) == sizeof(ptr))
+ {
+ // printf( "calling OnExit %p\n", ptr);
+ ptr->OnExit();
+ }
+ else
+ {
+ // printf( "this should never happen\n" );
+ }
}
// Global initialization
close(p_thrd_pipe[1]);
}
-#ifdef NO_DEFINE_GDK_1_1
-
-void wxMutexGuiEnter()
-{
- gdk_mutex_enter();
-}
-
-void wxMutexGuiLeave()
-{
- gdk_mutex_leave();
-}
-
-#else
-
void wxMutexGuiEnter()
{
wxMainMutex->Lock();
wxMainMutex->Unlock();
}
-#endif