Esempio n. 1
0
 _ossScopedLock ( ossSLatch *latch ) :
       _slatch ( NULL ), _xlatch ( NULL ), _mode ( EXCLUSIVE )
 {
    if ( latch )
    {
       _slatch = latch ;
       _mode = EXCLUSIVE ;
       _xlatch = NULL ;
       _slatch->get () ;
    }
 }
Esempio n. 2
0
 _ossScopedLock ( ossSLatch *latch, OSS_LATCH_MODE mode) :
       _slatch ( NULL ), _xlatch ( NULL ), _mode ( EXCLUSIVE )
 {
    if ( latch )
    {
       _slatch = latch ;
       _mode = mode ;
       _xlatch = NULL ;
       if ( mode == EXCLUSIVE )
          _slatch->get () ;
       else
          _slatch->get_shared () ;
    }
 }
Esempio n. 3
0
 void regSystemEDU ( EDU_TYPES edu, EDUID eduid )
 {
     _mutex.get() ;
     _mapSystemEDUS[ edu ] = eduid ;
     _mutex.release () ;
 }