26 |
26 |
27 #if EMULATOR |
27 #if EMULATOR |
28 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
28 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
29 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
29 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
30 #else |
30 #else |
31 IMPORT_C extern gboolean _gst_check_raised_critical ; |
31 extern gboolean _gst_check_raised_critical ; |
32 #endif |
32 #endif |
33 //gboolean _gst_check_raised_warning = FALSE; |
33 //gboolean _gst_check_raised_warning = FALSE; |
34 #if EMULATOR |
34 #if EMULATOR |
35 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean) |
35 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean) |
36 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)()) |
36 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)()) |
37 #else |
37 #else |
38 IMPORT_C extern gboolean _gst_check_raised_warning ; |
38 extern gboolean _gst_check_raised_warning ; |
39 #endif |
39 #endif |
40 //gboolean _gst_check_expecting_log = FALSE; |
40 //gboolean _gst_check_expecting_log = FALSE; |
41 #if EMULATOR |
41 #if EMULATOR |
42 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
42 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
43 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
43 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
44 #else |
44 #else |
45 IMPORT_C extern gboolean _gst_check_expecting_log ; |
45 extern gboolean _gst_check_expecting_log ; |
46 #endif |
46 #endif |
47 |
47 |
48 //gboolean _gst_check_expecting_log = FALSE; |
48 //gboolean _gst_check_expecting_log = FALSE; |
49 #if EMULATOR |
49 #if EMULATOR |
50 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean) |
50 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean) |
51 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)()) |
51 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)()) |
52 #else |
52 #else |
53 IMPORT_C extern gboolean _gst_check_threads_running ; |
53 extern gboolean _gst_check_threads_running ; |
54 #endif |
54 #endif |
55 |
55 |
56 |
56 |
57 #if EMULATOR |
57 #if EMULATOR |
58 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
58 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
59 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
59 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
60 #else |
60 #else |
61 IMPORT_C extern GList *buffers; |
61 extern GList *buffers; |
62 #endif |
62 #endif |
63 |
63 |
64 |
64 |
65 #if EMULATOR |
65 #if EMULATOR |
66 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*) |
66 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*) |
67 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)()) |
67 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)()) |
68 #else |
68 #else |
69 IMPORT_C extern GList *thread_list; |
69 extern GList *thread_list; |
70 #endif |
70 #endif |
71 |
71 |
72 //GMutex *mutex; |
72 //GMutex *mutex; |
73 #if EMULATOR |
73 #if EMULATOR |
74 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*) |
74 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*) |
75 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)()) |
75 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)()) |
76 #else |
76 #else |
77 IMPORT_C extern GMutex *mutex; |
77 extern GMutex *mutex; |
78 #endif |
78 #endif |
79 |
79 |
80 //GCond *start_cond; /* used to notify main thread of thread startups */ |
80 //GCond *start_cond; /* used to notify main thread of thread startups */ |
81 #if EMULATOR |
81 #if EMULATOR |
82 GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*) |
82 GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*) |
83 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)()) |
83 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)()) |
84 #else |
84 #else |
85 IMPORT_C extern GCond *start_cond; |
85 extern GCond *start_cond; |
86 #endif |
86 #endif |
87 |
87 |
88 //GCond *sync_cond; /* used to synchronize all threads and main thread */ |
88 //GCond *sync_cond; /* used to synchronize all threads and main thread */ |
89 #if EMULATOR |
89 #if EMULATOR |
90 GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*) |
90 GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*) |
91 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)()) |
91 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)()) |
92 #else |
92 #else |
93 IMPORT_C extern GCond *sync_cond; |
93 extern GCond *sync_cond; |
94 #endif |
94 #endif |
95 |
95 |
96 #define LOG_FILE "c:\\logs\\gdp_logs.txt" |
96 #define LOG_FILE "c:\\logs\\gdp_logs.txt" |
97 #include "std_log_result.h" |
97 #include "std_log_result.h" |
98 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
98 #define LOG_FILENAME_LINE __FILE__, __LINE__ |