Commit be98afe3 authored by Max Kellermann's avatar Max Kellermann

IOThread: use gcc.h

parent f53dadcc
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef MPD_IO_THREAD_HXX #ifndef MPD_IO_THREAD_HXX
#define MPD_IO_THREAD_HXX #define MPD_IO_THREAD_HXX
#include "gcc.h"
#include <glib.h> #include <glib.h>
void void
...@@ -47,25 +49,25 @@ io_thread_quit(void); ...@@ -47,25 +49,25 @@ io_thread_quit(void);
void void
io_thread_deinit(void); io_thread_deinit(void);
G_GNUC_PURE gcc_pure
GMainContext * GMainContext *
io_thread_context(void); io_thread_context(void);
/** /**
* Is the current thread the I/O thread? * Is the current thread the I/O thread?
*/ */
G_GNUC_PURE gcc_pure
bool bool
io_thread_inside(void); io_thread_inside(void);
guint guint
io_thread_idle_add(GSourceFunc function, gpointer data); io_thread_idle_add(GSourceFunc function, gpointer data);
G_GNUC_MALLOC gcc_malloc
GSource * GSource *
io_thread_timeout_add(guint interval_ms, GSourceFunc function, gpointer data); io_thread_timeout_add(guint interval_ms, GSourceFunc function, gpointer data);
G_GNUC_MALLOC gcc_malloc
GSource * GSource *
io_thread_timeout_add_seconds(guint interval, io_thread_timeout_add_seconds(guint interval,
GSourceFunc function, gpointer data); GSourceFunc function, gpointer data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment