This releases the reader-writer lock whether it's a reader calling the method or a writer calling the method. The private member variable states can be used to determine whether it's a reader or writer releasing the lock. The method is called rwUnlock to reduce confusion with the phMutex::unlock() method. Since any number of read lock calls can be called on the object by one thread, there should be a corresponding number of phRWLock::rwUnlock calls for each writer/reader lock acquired.
Definition at line 1346 of file phRWLock.cpp. |