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