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;
}
}
}