diff options
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSuperManager.cs | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSuperManager.cs b/OpenSim/Data/MySQL/MySQLSuperManager.cs index 4a9c7fa..b2485b1 100644 --- a/OpenSim/Data/MySQL/MySQLSuperManager.cs +++ b/OpenSim/Data/MySQL/MySQLSuperManager.cs | |||
@@ -1,24 +1,24 @@ | |||
1 | using System.Threading; | 1 | using System.Threading; |
2 | 2 | ||
3 | namespace OpenSim.Data.MySQL | 3 | namespace OpenSim.Data.MySQL |
4 | { | 4 | { |
5 | public class MySQLSuperManager | 5 | public class MySQLSuperManager |
6 | { | 6 | { |
7 | public bool Locked; | 7 | public bool Locked; |
8 | private readonly Mutex m_lock = new Mutex(false); | 8 | private readonly Mutex m_lock = new Mutex(false); |
9 | public MySQLManager Manager; | 9 | public MySQLManager Manager; |
10 | 10 | ||
11 | public void GetLock() | 11 | public void GetLock() |
12 | { | 12 | { |
13 | Locked = true; | 13 | Locked = true; |
14 | m_lock.WaitOne(); | 14 | m_lock.WaitOne(); |
15 | } | 15 | } |
16 | 16 | ||
17 | public void Release() | 17 | public void Release() |
18 | { | 18 | { |
19 | m_lock.ReleaseMutex(); | 19 | m_lock.ReleaseMutex(); |
20 | Locked = false; | 20 | Locked = false; |
21 | } | 21 | } |
22 | 22 | ||
23 | } | 23 | } |
24 | } | 24 | } |