8 void setType(
int type) {pthread_mutexattr_settype(&
attr, type);}
9 int getType()
const {
int rv = 0; pthread_mutexattr_gettype(&
attr, &rv);
return rv; }
13 operator const pthread_mutexattr_t & ()
const {
return attr;}
14 operator pthread_mutexattr_t & () {
return attr;}
22 void lock() throw() {pthread_mutex_lock(&obj);}
23 void unlock() throw() {pthread_mutex_unlock(&obj);}
26 void leave() throw() {unlock();}
28 void create(
const pthread_mutexattr_t *
attr );
80 pthread_rwlockattr_setpshared( &
attr, val ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE );
91 void create(
const pthread_rwlockattr_t *
attr );
93 void destroy() {pthread_rwlock_destroy( & obj ); }
142 #define insync(X) c_insync blah____sync(X) 145 #define inReadSync( X ) ::pfc::_readWriteLock_scope_read _asdf_l_readWriteLock_scope_read( X ) 146 #define inWriteSync( X ) ::pfc::_readWriteLock_scope_write _asdf_l_readWriteLock_scope_write( X )
pfc::mutexRecurStatic critical_section_static
readWriteLockBase & m_lock
~_readWriteLock_scope_read()
pfc::mutexRecur critical_section
void setProcessShared(bool val=true)
~_readWriteLock_scope_write()
readWriteLockBase & m_lock
void operator=(const mutexAttr &)
void create(pfc::string_formatter &p_out, const t_entry_list &p_data)
_readWriteLock_scope_read(readWriteLockBase &lock)
_readWriteLock_scope_write(readWriteLockBase &lock)
pthread_rwlockattr_t attr