gstreamer_core/tsrc/check/gst/gstpad/src/gstpad.c
changeset 9 2a0f36a70380
parent 8 4a7fac7dd34a
equal deleted inserted replaced
8:4a7fac7dd34a 9:2a0f36a70380
    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 extern GList *buffers;
    58 IMPORT_C extern GList *buffers;
    59 #endif
    59 #endif
    60 
    60 
    61 
    61 
    62 #if EMULATOR
    62 #if EMULATOR
    63 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    63 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    64 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    64 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    65 #else 
    65 #else 
    66 extern gboolean _gst_check_raised_critical;
    66 IMPORT_C extern gboolean _gst_check_raised_critical;
    67 #endif
    67 #endif
    68 //gboolean _gst_check_raised_warning = FALSE;
    68 //gboolean _gst_check_raised_warning = FALSE;
    69 #if EMULATOR
    69 #if EMULATOR
    70 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean)
    70 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean)
    71 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)())
    71 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)())
    72 #else 
    72 #else 
    73 extern gboolean _gst_check_raised_warning;
    73 IMPORT_C extern gboolean _gst_check_raised_warning;
    74 #endif
    74 #endif
    75 //gboolean _gst_check_expecting_log = FALSE;
    75 //gboolean _gst_check_expecting_log = FALSE;
    76 #if EMULATOR
    76 #if EMULATOR
    77 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean)
    77 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean)
    78 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)())
    78 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)())
    79 #else 
    79 #else 
    80 extern gboolean _gst_check_expecting_log;
    80 IMPORT_C extern gboolean _gst_check_expecting_log;
    81 #endif
    81 #endif
    82 
    82 
    83 //gboolean _gst_check_expecting_log = FALSE;
    83 //gboolean _gst_check_expecting_log = FALSE;
    84 #if EMULATOR
    84 #if EMULATOR
    85 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean)
    85 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean)
    86 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)())
    86 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)())
    87 #else 
    87 #else 
    88 extern gboolean _gst_check_threads_running;
    88 IMPORT_C extern gboolean _gst_check_threads_running;
    89 #endif
    89 #endif
    90 
    90 
    91 
    91 
    92 
    92 
    93 #if EMULATOR
    93 #if EMULATOR
    94 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
    94 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
    95 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)())
    95 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)())
    96 #else 
    96 #else 
    97 extern GList *thread_list;
    97 IMPORT_C extern GList *thread_list;
    98 #endif
    98 #endif
    99 
    99 
   100 //GMutex *mutex;
   100 //GMutex *mutex;
   101 #if EMULATOR
   101 #if EMULATOR
   102 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*)
   102 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*)
   103 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)())
   103 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)())
   104 #else 
   104 #else 
   105 extern GMutex *mutex;
   105 IMPORT_C extern GMutex *mutex;
   106 #endif
   106 #endif
   107 
   107 
   108 //GCond *start_cond;              /* used to notify main thread of thread startups */
   108 //GCond *start_cond;              /* used to notify main thread of thread startups */
   109 #if EMULATOR
   109 #if EMULATOR
   110 static GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*)
   110 static GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*)
   111 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)())
   111 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)())
   112 #else 
   112 #else 
   113 extern GCond *start_cond;
   113 IMPORT_C extern GCond *start_cond;
   114 #endif
   114 #endif
   115 
   115 
   116 //GCond *sync_cond;               /* used to synchronize all threads and main thread */
   116 //GCond *sync_cond;               /* used to synchronize all threads and main thread */
   117 #if EMULATOR
   117 #if EMULATOR
   118 static GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*)
   118 static GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*)
   119 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)())
   119 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)())
   120 #else 
   120 #else 
   121 extern GCond *sync_cond;
   121 IMPORT_C extern GCond *sync_cond;
   122 #endif
   122 #endif
   123 
   123 
   124 void test_link()
   124 void test_link()
   125 {
   125 {
   126   GstPad *src, *sink;
   126   GstPad *src, *sink;