Sha256: 5a752e70948a209e60517619288556887e9f31494bed94f5a569bb91d4bb43fb
Contents?: true
Size: 470 Bytes
Versions: 23
Compression:
Stored size: 470 Bytes
Contents
using System; using System.Threading; namespace rho.common { public class Mutex { private Object m_mutex = new Object(); public void Lock() { Monitor.Enter(m_mutex); } public void Unlock() { Monitor.Exit(m_mutex); } public int Sleep(int nSec) { Unlock(); Thread.Sleep(nSec * 1000); Lock(); return nSec; } } }
Version data entries
23 entries across 23 versions & 1 rubygems