bigloo.foreign.bgl_condvar_timed_wait C# (CSharp) Method

bgl_condvar_timed_wait() public static method

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