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