summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:51:55 +0000
committerfcolin2007-02-01 09:51:55 +0000
commit3184cdca9aa435d664f7bfab4a4762753df737bc (patch)
tree68fcf8a86a7b8274936b38692aa8f45c01883a5c /CSharp
parent50512e2fdec45c2fc49709bab8e00cf2ef11fd66 (diff)
downloadivy-csharp-3184cdca9aa435d664f7bfab4a4762753df737bc.zip
ivy-csharp-3184cdca9aa435d664f7bfab4a4762753df737bc.tar.gz
ivy-csharp-3184cdca9aa435d664f7bfab4a4762753df737bc.tar.bz2
ivy-csharp-3184cdca9aa435d664f7bfab4a4762753df737bc.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')
-rw-r--r--CSharp/Ivy/Ivy/IvyWatcher.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs
index 3ab1fb3..0cacef6 100644
--- a/CSharp/Ivy/Ivy/IvyWatcher.cs
+++ b/CSharp/Ivy/Ivy/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));