상속: obj
예제 #1
0
 public static bool bgl_condvar_timed_wait(condvar c, mutex o, int ms)
 {
     lock( c ) {
     try
     {
        bool res;
        bgl_mutex_unlock( o );
        res = Monitor.Wait(c, ms);
        bgl_mutex_lock( o );
        return res;
     }
     catch(Exception)
     {
        return false;
     }
      }
 }
예제 #2
0
 public static bool bgl_condvar_wait(condvar c, mutex o)
 {
     lock( c ) {
     try
     {
        bgl_mutex_unlock( o );
        Monitor.Wait(c);
        bgl_mutex_lock( o );
        return true;
     }
     catch(Exception)
     {
        return false;
     }
      }
 }
예제 #3
0
 public static bool bgl_mutex_unlock(mutex o)
 {
     return o.release_lock();
 }
예제 #4
0
 public static bool bgl_mutex_timed_lock(mutex o, int tmt)
 {
     return o.acquire_timed_lock(tmt);
 }
예제 #5
0
 public static Object bgl_mutex_state(mutex o)
 {
     return o.state();
 }
예제 #6
0
 public static Object BGL_MUTEX_NAME(mutex o)
 {
     return o.name;
 }
예제 #7
0
 public static bool bgl_mutex_lock(mutex o)
 {
     return o.acquire_lock();
 }