Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

int phRWLock::rwUnlock  ) 
 

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.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:10 2007 for phission by  doxygen 1.4.4