Searched refs:rec_mutex (Results 1 – 4 of 4) sorted by relevance
192 void g_rec_mutex_init (GRecMutex *rec_mutex);194 void g_rec_mutex_clear (GRecMutex *rec_mutex);196 void g_rec_mutex_lock (GRecMutex *rec_mutex);198 gboolean g_rec_mutex_trylock (GRecMutex *rec_mutex);200 void g_rec_mutex_unlock (GRecMutex *rec_mutex);407 g_rec_mutex_locker_new (GRecMutex *rec_mutex) in g_rec_mutex_locker_new() argument409 g_rec_mutex_lock (rec_mutex); in g_rec_mutex_locker_new()410 return (GRecMutexLocker *) rec_mutex; in g_rec_mutex_locker_new()
310 g_rec_mutex_get_impl (GRecMutex *rec_mutex) in g_rec_mutex_get_impl() argument312 pthread_mutex_t *impl = g_atomic_pointer_get (&rec_mutex->p); in g_rec_mutex_get_impl()317 if (!g_atomic_pointer_compare_and_exchange (&rec_mutex->p, NULL, impl)) in g_rec_mutex_get_impl()319 impl = rec_mutex->p; in g_rec_mutex_get_impl()359 g_rec_mutex_init (GRecMutex *rec_mutex) in g_rec_mutex_init() argument361 rec_mutex->p = g_rec_mutex_impl_new (); in g_rec_mutex_init()380 g_rec_mutex_clear (GRecMutex *rec_mutex) in g_rec_mutex_clear() argument382 g_rec_mutex_impl_free (rec_mutex->p); in g_rec_mutex_clear()418 g_rec_mutex_unlock (GRecMutex *rec_mutex) in g_rec_mutex_unlock() argument420 pthread_mutex_unlock (rec_mutex->p); in g_rec_mutex_unlock()[all …]
46 GRecMutex rec_mutex; member64 g_rec_mutex_init (&priv->rec_mutex); in gst_vulkan_command_pool_init()103 g_rec_mutex_clear (&priv->rec_mutex); in gst_vulkan_command_pool_finalize()254 g_rec_mutex_lock (&priv->rec_mutex); in gst_vulkan_command_pool_lock()272 g_rec_mutex_unlock (&priv->rec_mutex); in gst_vulkan_command_pool_unlock()
415 GRecMutex *rec_mutex = (GRecMutex *) data; in rec_mutex_locked_thread() local416 g_assert_false (g_rec_mutex_trylock (rec_mutex)); in rec_mutex_locked_thread()424 GRecMutex *rec_mutex = (GRecMutex *) data; in rec_mutex_unlocked_thread() local425 g_assert_true (g_rec_mutex_trylock (rec_mutex)); in rec_mutex_unlocked_thread()432 GRecMutex rec_mutex; in test_g_rec_mutex_locker() local435 g_rec_mutex_init (&rec_mutex); in test_g_rec_mutex_locker()439 g_autoptr(GRecMutexLocker) val = g_rec_mutex_locker_new (&rec_mutex); in test_g_rec_mutex_locker()444 thread = g_thread_new ("rec mutex locked", rec_mutex_locked_thread, &rec_mutex); in test_g_rec_mutex_locker()449 thread = g_thread_new ("rec mutex unlocked", rec_mutex_unlocked_thread, &rec_mutex); in test_g_rec_mutex_locker()452 g_rec_mutex_clear (&rec_mutex); in test_g_rec_mutex_locker()