ReadWriteLock
maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader threads, so long as there are no writers. The write lock is exclusive. More...
Go to the source code of this file.
Variables | |
module mango locks | ReadWriteLock |
import mango locks | Lock |
ReadWriteLock
maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader threads, so long as there are no writers. The write lock is exclusive.
Written by Doug Lea with assistance from members of JCP JSR-166 Expert Group and released to the public domain, as explained at http://creativecommons.org/licenses/publicdomain Ported to D by Ben Hinkle. Email comments and bug reports to ben.hinkle@gmail.com
revision 2.01
Definition in file ReadWriteLock.d.
|
Definition at line 16 of file ReadWriteLock.d. |
|
Definition at line 18 of file ReadWriteLock.d. |