Home
last modified time | relevance | path

Searched refs:rw_lock (Results 1 – 4 of 4) sorted by relevance

/third_party/glib/glib/
Dgthread.h175 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() argument
519 g_rw_lock_writer_lock (rw_lock); in g_rw_lock_writer_locker_new()
[all …]
Dgthread-posix.c517 g_rw_lock_init (GRWLock *rw_lock) in g_rw_lock_init() argument
519 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() argument
539 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() argument
558 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() argument
580 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 …]
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_rwlock_destroy.c28 pthread_rwlock_t rw_lock; in pthread_rwlock_destroy_0100() local
29 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()
/third_party/glib/gobject/
Dgtype.c121 #define G_READ_LOCK(rw_lock) do { g_printerr (G_STRLOC ": readL++\n"); g_rw_lock_reader_lock (rw… argument
122 #define G_READ_UNLOCK(rw_lock) do { g_printerr (G_STRLOC ": readL--\n"); g_rw_lock_reader_unlock ( argument
123 #define G_WRITE_LOCK(rw_lock) do { g_printerr (G_STRLOC ": writeL++\n"); g_rw_lock_writer_lock (r… argument
124 #define G_WRITE_UNLOCK(rw_lock) do { g_printerr (G_STRLOC ": writeL--\n"); g_rw_lock_writer_unlock … argument
126 #define G_READ_LOCK(rw_lock) g_rw_lock_reader_lock (rw_lock) argument
127 #define G_READ_UNLOCK(rw_lock) g_rw_lock_reader_unlock (rw_lock) argument
128 #define G_WRITE_LOCK(rw_lock) g_rw_lock_writer_lock (rw_lock) argument
129 #define G_WRITE_UNLOCK(rw_lock) g_rw_lock_writer_unlock (rw_lock) argument