diff options
author | fcolin | 2007-02-01 10:03:44 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:03:44 +0000 |
commit | 7fbf9b58f14ef93263150481485e8375f253e30c (patch) | |
tree | 265f262ad983649ffb480b49f5e8f271397e50e3 /CSharp/Ivy/IvyPPC | |
parent | 4f862b440fd8e23b1b5855e9e14e624ab803a922 (diff) | |
download | ivy-csharp-7fbf9b58f14ef93263150481485e8375f253e30c.zip ivy-csharp-7fbf9b58f14ef93263150481485e8375f253e30c.tar.gz ivy-csharp-7fbf9b58f14ef93263150481485e8375f253e30c.tar.bz2 ivy-csharp-7fbf9b58f14ef93263150481485e8375f253e30c.tar.xz |
Utilisateur : Fcolin Date : 10/02/06 Heure : 10:34 Archivé dans $/CSharp/Ivy/Ivy Commentaire: remove lock(this) (vss 20)
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyWatcher.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs index 3ab1fb3..0cacef6 100644 --- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs +++ b/CSharp/Ivy/IvyPPC/IvyWatcher.cs @@ -158,7 +158,7 @@ namespace IvyBus /// </summary>
internal virtual void stop()
{
- lock(this)
+ lock (stream)
{
traceDebug("begining stopping an IvyWatcher");
stream.Close();
@@ -174,7 +174,7 @@ namespace IvyBus internal virtual void start()
{
- lock(this)
+ lock (stream)
{
listenThread.Start();
IPEndPoint EPhost = new IPEndPoint(group, port);
@@ -183,7 +183,7 @@ namespace IvyBus }
- internal static String getDomain(String net)
+ internal static String getDomain(string net)
{
int sep_index = net.LastIndexOf(":");
if (sep_index != - 1)
@@ -204,7 +204,7 @@ namespace IvyBus return net;
}
- internal static int getPort(String net)
+ internal static int getPort(string net)
{
int sep_index = net.LastIndexOf(":");
int port = (sep_index == - 1)?Ivy.DEFAULT_PORT:Int32.Parse(net.Substring(sep_index + 1));
|