10 singleLock(pthread_mutex_t &m )
13 pthread_mutex_lock(&lock);
17 pthread_mutex_unlock(&lock);
23 friend class eSingleLocker;
24 pthread_mutex_t m_lock;
25 eSingleLock(eSingleLock &);
29 pthread_mutex_init(&m_lock, 0);
33 pthread_mutex_destroy(&m_lock);
41 eSingleLocker(eSingleLock &m)
44 pthread_mutex_lock(&m_lock.m_lock);
48 pthread_mutex_unlock(&m_lock.m_lock);
54 pthread_mutex_t mutex;
60 void lock(int res=100);
61 void unlock(int res=100);
72 eLocker(eLock &lock, int res=100);
79 pthread_mutex_t mutex;