Commit 4b624559 authored by Seungha Yang's avatar Seungha Yang 🐑
Browse files

check: Use g_thread_yield instead of g_usleep(1)

Since the commit,
g_usleep(1) will be translated to Sleep(1) on Windows which means
sleep in 1 millisecond. But GLib provides g_thread_yield() API
which is exactly what we required here for thread context switching.

Part-of: <gstreamer/gstreamer!559>
parent 44ef5a7c
Pipeline #173060 waiting for manual action with stages
in 50 seconds
......@@ -622,8 +622,7 @@ G_STMT_START { \
#define THREAD_SWITCH() \
/* a minimal sleep is a context switch */ \
g_usleep (1); \
g_thread_yield (); \
#define THREAD_TEST_RUNNING() (!!_gst_check_threads_running)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment