Merge branch '590-rwlock-docs' into 'master'

gthread: Fix g_rw_lock_reader_lock() documentation

Closes #590

See merge request GNOME/glib!882
This commit is contained in:
Sebastian Dröge 2019-06-03 10:44:32 +00:00
commit 41f68f8b19

View File

@ -587,8 +587,10 @@ g_rw_lock_writer_unlock (GRWLock *rw_lock)
* @rw_lock: a #GRWLock * @rw_lock: a #GRWLock
* *
* Obtain a read lock on @rw_lock. If another thread currently holds * Obtain a read lock on @rw_lock. If another thread currently holds
* the write lock on @rw_lock or blocks waiting for it, the current * the write lock on @rw_lock, the current thread will block. If another thread
* thread will block. Read locks can be taken recursively. * does not hold the write lock, but is waiting for it, it is implementation
* defined whether the reader or writer will block. Read locks can be taken
* recursively.
* *
* It is implementation-defined how many threads are allowed to * It is implementation-defined how many threads are allowed to
* hold read locks on the same lock simultaneously. If the limit is hit, * hold read locks on the same lock simultaneously. If the limit is hit,