bigloo.foreign.bgl_condvar_wait C# (CSharp) Method

bgl_condvar_wait() public static method

public static bgl_condvar_wait ( condvar c, mutex o ) : bool
c condvar
o mutex
return bool
        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;
            }
             }
        }
foreign