1 # This file makes most of the thread related macros look like
2 # functions, which they really were, if possible easy.
5 <NAME>GLIB_DISABLE_DEPRECATION_WARNINGS</NAME>
6 #ifdef GLIB_DISABLE_DEPRECATION_WARNINGS
10 <NAME>G_ATOMIC_LOCK_FREE</NAME>
11 #define G_ATOMIC_LOCK_FREE
14 # default thread implementation
17 <NAME>G_THREADS_IMPL_POSIX</NAME>
18 #define G_THREADS_IMPL_POSIX
22 <NAME>G_THREADS_IMPL_WIN32</NAME>
23 #define G_THREADS_IMPL_NONE
29 <NAME>g_thread_supported</NAME>
30 <RETURNS>gboolean</RETURNS>
36 <NAME>g_mutex_new</NAME>
37 <RETURNS>GMutex *</RETURNS>
41 <NAME>g_mutex_lock</NAME>
42 <RETURNS>void</RETURNS>
47 <NAME>g_mutex_trylock</NAME>
48 <RETURNS>gboolean</RETURNS>
53 <NAME>g_mutex_unlock</NAME>
54 <RETURNS>void</RETURNS>
59 <NAME>g_mutex_free</NAME>
60 <RETURNS>void</RETURNS>
67 <NAME>GStaticMutex</NAME>
71 <NAME>G_STATIC_MUTEX_INIT</NAME>
72 #define G_STATIC_MUTEX_INIT
76 <NAME>g_static_mutex_lock</NAME>
77 <RETURNS>void</RETURNS>
82 <NAME>g_static_mutex_trylock</NAME>
83 <RETURNS>gboolean</RETURNS>
88 <NAME>g_static_mutex_unlock</NAME>
89 <RETURNS>void</RETURNS>
94 <NAME>g_static_mutex_get_mutex</NAME>
95 <RETURNS>GMutex *</RETURNS>
102 <NAME>g_thread_yield</NAME>
103 <RETURNS>void</RETURNS>
107 <NAME>g_thread_create</NAME>
108 <RETURNS>GThread *</RETURNS>
118 <NAME>G_LOCK_DEFINE</NAME>
119 #define G_LOCK_DEFINE(name)
123 <NAME>G_LOCK_DEFINE_STATIC</NAME>
124 #define G_LOCK_DEFINE_STATIC(name)
128 <NAME>G_LOCK_EXTERN</NAME>
129 #define G_LOCK_EXTERN(name)
138 <NAME>G_UNLOCK</NAME>
139 #define G_UNLOCK(name)
143 <NAME>G_TRYLOCK</NAME>
144 #define G_TRYLOCK(name)
150 <NAME>g_cond_new</NAME>
151 <RETURNS>GCond*</RETURNS>
155 <NAME>g_cond_signal</NAME>
156 <RETURNS>void</RETURNS>
161 <NAME>g_cond_broadcast</NAME>
162 <RETURNS>void</RETURNS>
167 <NAME>g_cond_wait</NAME>
168 <RETURNS>void</RETURNS>
169 GCond *cond, GMutex *mutex
173 <NAME>g_cond_timed_wait</NAME>
174 <RETURNS>gboolean</RETURNS>
175 GCond *cond, GMutex *mutex, GTimeVal *abs_time
179 <NAME>g_cond_free</NAME>
180 <RETURNS>void</RETURNS>
186 <NAME>G_PRIVATE_INIT</NAME>
187 #define G_PRIVATE_INIT(notify)
193 <NAME>G_STATIC_PRIVATE_INIT</NAME>
194 #define G_STATIC_PRIVATE_INIT
197 # Definitions for different operating systems
200 <NAME>G_OS_UNIX</NAME>
205 <NAME>G_OS_WIN32</NAME>
212 <NAME>g_ascii_isalnum</NAME>
213 <RETURNS>gboolean</RETURNS>
218 <NAME>g_ascii_isalpha</NAME>
219 <RETURNS>gboolean</RETURNS>
224 <NAME>g_ascii_iscntrl</NAME>
225 <RETURNS>gboolean</RETURNS>
230 <NAME>g_ascii_isdigit</NAME>
231 <RETURNS>gboolean</RETURNS>
236 <NAME>g_ascii_isgraph</NAME>
237 <RETURNS>gboolean</RETURNS>
242 <NAME>g_ascii_islower</NAME>
243 <RETURNS>gboolean</RETURNS>
248 <NAME>g_ascii_isprint</NAME>
249 <RETURNS>gboolean</RETURNS>
254 <NAME>g_ascii_ispunct</NAME>
255 <RETURNS>gboolean</RETURNS>
260 <NAME>g_ascii_isspace</NAME>
261 <RETURNS>gboolean</RETURNS>
266 <NAME>g_ascii_isupper</NAME>
267 <RETURNS>gboolean</RETURNS>
272 <NAME>g_ascii_isxdigit</NAME>
273 <RETURNS>gboolean</RETURNS>
280 <NAME>g_atomic_int_inc</NAME>
281 <RETURNS>void</RETURNS>
286 <NAME>g_atomic_int_dec_and_test</NAME>
287 <RETURNS>gboolean</RETURNS>
292 <NAME>G_VA_COPY</NAME>
293 #define G_VA_COPY(ap1,ap2)