Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #ifndef __GTHREAD_WSD_H__
21 #define __GTHREAD_WSD_H__
23 #if (defined(__SYMBIAN32__) && (defined(__WINSCW__) || defined(__WINS__)))
26 #include <sys/cdefs.h>
29 /* ------------------------ MACRO DEFINATIONS -------------------------*/
31 #define EMULATOR (defined(__SYMBIAN32__) && (defined(__WINSCW__) || defined(__WINS__)))
34 #define VARIABLE_NAME(var,filename) s_##filename##_##var
36 #define FUNCTION_NAME(var,filename) _s_##filename##_##var
38 #define VARIABLE_DECL(var,filename,datatype)\
39 datatype VARIABLE_NAME(var,filename);
41 #define VARIABLE_DECL_ARRAY(name,filename,datatype,size) \
42 datatype VARIABLE_NAME(name,filename)[size];
44 #define RETURN_VAL(var,filename) (Gthread_ImpurePtr()->VARIABLE_NAME(var,filename))
46 #define PLS(var,filename,type) \
47 type *FUNCTION_NAME(var,filename)() \
49 return &RETURN_VAL(var,filename);\
52 #define PLS_ARRAY(var,filename,type) \
53 type *FUNCTION_NAME(var,filename)() \
55 return RETURN_VAL(var,filename);\
57 /* ------------------------ END MACRO DEFINATIONS -------------------------*/
61 VARIABLE_DECL(thread_system_already_initialized,gthread_impl,gboolean)
62 VARIABLE_DECL_ARRAY(g_thread_priority_map,gthread_impl,gint,G_THREAD_PRIORITY_URGENT + 1)
65 VARIABLE_DECL(posix_check_cmd_prio_warned,gthread_posix,gboolean)
66 #endif /* G_ENABLE_DEBUG */
68 VARIABLE_DECL(zero_thread,gthread_impl,GSystemThread)
69 VARIABLE_DECL(priority_normal_value,gthread_posix,gint)
70 VARIABLE_DECL(g_thread_min_stack_size ,gthread_posix,gulong)
71 VARIABLE_DECL(g_thread_functions_for_glib_use_default ,gthread_posix,GThreadFunctions)
75 struct global_struct *Gthread_ImpurePtr();
79 #endif /* __GTHREAD_WSD_H__ */