Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/nto/RWLock.inl

Go to the documentation of this file.
00001 #ifndef __J2K__RWLock_INL__
00002 #define __J2K__RWLock_INL__
00003 
00004 #include <j2k/nto/RWLock.hpp>
00005 
00006 //
00007 // Classical Implementation of Reader/Writer lock using Mutex
00008 // Don't use pthread_rwlock, since it's not implemented on every platforms;
00009 // however, pthread_mutex is more common than pthread_rwlock, 
00010 // so use it to implement the other.
00011 //
00012 // It's also simpler to code then to play with C structs...
00013 //
00014 
00015  inline RWLock::RWLock() 
00016   : readers( 0 ), readfail( 0 ), writefail( 0 ), loop( 0 ) { }
00017 
00018  inline RWLock::~RWLock() { }
00019 
00020 
00021 #endif

Generated on Sun Oct 14 18:46:24 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001