Searched refs:rw_lock (Results 1 – 4 of 4) sorted by relevance
175 void g_rw_lock_init (GRWLock *rw_lock);177 void g_rw_lock_clear (GRWLock *rw_lock);179 void g_rw_lock_writer_lock (GRWLock *rw_lock);181 gboolean g_rw_lock_writer_trylock (GRWLock *rw_lock);183 void g_rw_lock_writer_unlock (GRWLock *rw_lock);185 void g_rw_lock_reader_lock (GRWLock *rw_lock);187 gboolean g_rw_lock_reader_trylock (GRWLock *rw_lock);189 void g_rw_lock_reader_unlock (GRWLock *rw_lock);517 g_rw_lock_writer_locker_new (GRWLock *rw_lock) in g_rw_lock_writer_locker_new() argument519 g_rw_lock_writer_lock (rw_lock); in g_rw_lock_writer_locker_new()[all …]
517 g_rw_lock_init (GRWLock *rw_lock) in g_rw_lock_init() argument519 rw_lock->p = g_rw_lock_impl_new (); in g_rw_lock_init()537 g_rw_lock_clear (GRWLock *rw_lock) in g_rw_lock_clear() argument539 g_rw_lock_impl_free (rw_lock->p); in g_rw_lock_clear()556 g_rw_lock_writer_lock (GRWLock *rw_lock) in g_rw_lock_writer_lock() argument558 int retval = pthread_rwlock_wrlock (g_rw_lock_get_impl (rw_lock)); in g_rw_lock_writer_lock()561 g_critical ("Failed to get RW lock %p: %s", rw_lock, g_strerror (retval)); in g_rw_lock_writer_lock()578 g_rw_lock_writer_trylock (GRWLock *rw_lock) in g_rw_lock_writer_trylock() argument580 if (pthread_rwlock_trywrlock (g_rw_lock_get_impl (rw_lock)) != 0) in g_rw_lock_writer_trylock()598 g_rw_lock_writer_unlock (GRWLock *rw_lock) in g_rw_lock_writer_unlock() argument[all …]
28 pthread_rwlock_t rw_lock; in pthread_rwlock_destroy_0100() local29 pthread_rwlock_init(&rw_lock, NULL); in pthread_rwlock_destroy_0100()30 int32_t ret = pthread_rwlock_destroy(&rw_lock); in pthread_rwlock_destroy_0100()
121 #define G_READ_LOCK(rw_lock) do { g_printerr (G_STRLOC ": readL++\n"); g_rw_lock_reader_lock (rw… argument122 #define G_READ_UNLOCK(rw_lock) do { g_printerr (G_STRLOC ": readL--\n"); g_rw_lock_reader_unlock (… argument123 #define G_WRITE_LOCK(rw_lock) do { g_printerr (G_STRLOC ": writeL++\n"); g_rw_lock_writer_lock (r… argument124 #define G_WRITE_UNLOCK(rw_lock) do { g_printerr (G_STRLOC ": writeL--\n"); g_rw_lock_writer_unlock … argument126 #define G_READ_LOCK(rw_lock) g_rw_lock_reader_lock (rw_lock) argument127 #define G_READ_UNLOCK(rw_lock) g_rw_lock_reader_unlock (rw_lock) argument128 #define G_WRITE_LOCK(rw_lock) g_rw_lock_writer_lock (rw_lock) argument129 #define G_WRITE_UNLOCK(rw_lock) g_rw_lock_writer_unlock (rw_lock) argument