28 #ifndef __LIBFREEWRL_THREADS_H__
29 #define __LIBFREEWRL_THREADS_H__
40 #include <system_threads.h>
44 #include <system_threads.h>
49 int freewrlSystem(
const char *
string);
62 #define FREEWRL_MAX_THREADS 5
64 #define FREEWRL_THREAD_MAIN 1
65 #define FREEWRL_THREAD_DISPLAY 2
66 #define FREEWRL_THREAD_PARSER 3
67 #define FREEWRL_THREAD_TEXTURE 4
69 extern pthread_t mainThread;
70 extern pthread_t DispThrd;
71 extern pthread_t PCthread;
72 extern pthread_t loadThread;
78 #if !defined(FRONTEND_HANDLES_DISPLAY_THREAD)
79 void _displayThread(
void *globalcontext);
83 void _inputParseThread (
void *globalcontext);
86 void _textureThread(
void *globalcontext);
89 #ifdef FREEWRL_THREAD_COLORIZED
90 int fw_thread_color(
int thread_id);
94 #define ENTER_THREAD(_str) trace_enter_thread(_str)
95 void trace_enter_thread(
const char *str);
97 extern pthread_mutex_t mutex_resource_tree;
98 extern pthread_mutex_t mutex_resource_list;
99 extern pthread_mutex_t mutex_texture_list;
100 extern pthread_cond_t texture_list_condition;
101 extern pthread_cond_t resource_list_condition;