From 7fbf9b58f14ef93263150481485e8375f253e30c Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:03:44 +0000 Subject: Utilisateur : Fcolin Date : 10/02/06 Heure : 10:34 Archivé dans $/CSharp/Ivy/Ivy Commentaire: remove lock(this) (vss 20) --- CSharp/Ivy/IvyPPC/IvyWatcher.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CSharp/Ivy/IvyPPC') 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 /// 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)); -- cgit v1.1