diff options
author | Jeff Ames | 2008-09-03 14:05:49 +0000 |
---|---|---|
committer | Jeff Ames | 2008-09-03 14:05:49 +0000 |
commit | 9053e8510c5e829c4e641cc51bab9387894b5e3b (patch) | |
tree | fe202124b6ddba326a20532de0181e3675891972 /OpenSim/Data/MySQL/MySQLSuperManager.cs | |
parent | Mantis #2097 (diff) | |
download | opensim-SC-9053e8510c5e829c4e641cc51bab9387894b5e3b.zip opensim-SC-9053e8510c5e829c4e641cc51bab9387894b5e3b.tar.gz opensim-SC-9053e8510c5e829c4e641cc51bab9387894b5e3b.tar.bz2 opensim-SC-9053e8510c5e829c4e641cc51bab9387894b5e3b.tar.xz |
Update svn properties.
Diffstat (limited to '')
-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 | } |