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

Version Path
rhodes-3.0.2 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.2.beta.1 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.8 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.7 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.6 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.5 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.4 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.3 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.1.beta.2 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.7 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.6 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.5 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.4 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.3 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.2 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-3.0.0.beta.1 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-2.4.1 platform/wp7/RhoRubyLib/common/Mutex.cs
rhodes-2.4.1.beta.1 platform/wp7/RhoRubyLib/common/Mutex.cs