+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
+2000-12-12 Havoc Pennington <hp@pobox.com>
+
+ * gmain.c (g_main_context_destroy): don't try to use thread stuff
+ unless G_THREADS_ENABLED
+ (g_main_context_query): ditto
+ (g_main_context_check): ditto
+ (g_main_loop_quit): ditto
+
Tue Dec 12 18:58:22 2000 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_remove): return whether a value
g_mem_chunk_destroy (context->poll_chunk);
+#ifdef G_THREADS_ENABLED
if (g_thread_supported())
{
#ifndef G_OS_WIN32
CloseHandle (context->wake_up_semaphore);
#endif
}
+#endif
g_free (context);
}
pollrec = pollrec->next;
}
+#ifdef G_THREADS_ENABLED
context->poll_changed = FALSE;
-
+#endif
+
if (timeout)
{
*timeout = context->timeout;
}
else
context->poll_waiting = FALSE;
-#endif /* G_THREADS_ENABLED */
/* If the set of poll file descriptors changed, bail out
* and let the main loop rerun
*/
if (context->poll_changed)
return 0;
-
+#endif /* G_THREADS_ENABLED */
+
pollrec = context->poll_records;
i = 0;
while (i < n_fds)
LOCK_LOOP (loop);
loop->is_running = FALSE;
+#ifdef G_THREADS_ENABLED
if (loop->sem_cond)
g_cond_broadcast (loop->sem_cond);
+#endif
UNLOCK_LOOP (loop);
g_mem_chunk_destroy (context->poll_chunk);
+#ifdef G_THREADS_ENABLED
if (g_thread_supported())
{
#ifndef G_OS_WIN32
CloseHandle (context->wake_up_semaphore);
#endif
}
+#endif
g_free (context);
}
pollrec = pollrec->next;
}
+#ifdef G_THREADS_ENABLED
context->poll_changed = FALSE;
-
+#endif
+
if (timeout)
{
*timeout = context->timeout;
}
else
context->poll_waiting = FALSE;
-#endif /* G_THREADS_ENABLED */
/* If the set of poll file descriptors changed, bail out
* and let the main loop rerun
*/
if (context->poll_changed)
return 0;
-
+#endif /* G_THREADS_ENABLED */
+
pollrec = context->poll_records;
i = 0;
while (i < n_fds)
LOCK_LOOP (loop);
loop->is_running = FALSE;
+#ifdef G_THREADS_ENABLED
if (loop->sem_cond)
g_cond_broadcast (loop->sem_cond);
+#endif
UNLOCK_LOOP (loop);