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>
210 <NAME>G_OS_BEOS</NAME>
217 <NAME>g_ascii_isalnum</NAME>
218 <RETURNS>gboolean</RETURNS>
223 <NAME>g_ascii_isalpha</NAME>
224 <RETURNS>gboolean</RETURNS>
229 <NAME>g_ascii_iscntrl</NAME>
230 <RETURNS>gboolean</RETURNS>
235 <NAME>g_ascii_isdigit</NAME>
236 <RETURNS>gboolean</RETURNS>
241 <NAME>g_ascii_isgraph</NAME>
242 <RETURNS>gboolean</RETURNS>
247 <NAME>g_ascii_islower</NAME>
248 <RETURNS>gboolean</RETURNS>
253 <NAME>g_ascii_isprint</NAME>
254 <RETURNS>gboolean</RETURNS>
259 <NAME>g_ascii_ispunct</NAME>
260 <RETURNS>gboolean</RETURNS>
265 <NAME>g_ascii_isspace</NAME>
266 <RETURNS>gboolean</RETURNS>
271 <NAME>g_ascii_isupper</NAME>
272 <RETURNS>gboolean</RETURNS>
277 <NAME>g_ascii_isxdigit</NAME>
278 <RETURNS>gboolean</RETURNS>
285 <NAME>g_atomic_int_inc</NAME>
286 <RETURNS>void</RETURNS>
291 <NAME>g_atomic_int_dec_and_test</NAME>
292 <RETURNS>gboolean</RETURNS>
301 <NAME>G_VA_COPY</NAME>
302 #define G_VA_COPY(ap1,ap2)