From 3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 10 Oct 2008 15:45:54 +0000 Subject: Ajout de commentaire sur les menbres public --- Ivy/IvyWatcher.cs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Ivy/IvyWatcher.cs') diff --git a/Ivy/IvyWatcher.cs b/Ivy/IvyWatcher.cs index b985ada..cc3fab1 100644 --- a/Ivy/IvyWatcher.cs +++ b/Ivy/IvyWatcher.cs @@ -81,9 +81,10 @@ namespace IvyBus } } - /// the behaviour of each thread watching the UDP socket. + /// + /// the behaviour of each thread watching the UDP socket. /// - public void Run() + private void Run() { Ivy.traceProtocol(Resources.IvyWatcher, "beginning of a watcher Thread"); @@ -172,7 +173,9 @@ namespace IvyBus Ivy.traceProtocol(Resources.IvyWatcher, "ending stopping an IvyWatcher"); } } - + /// + /// send the boradcst message on all domains + /// internal virtual void start() { lock (stream) @@ -197,14 +200,15 @@ namespace IvyBus if (disposing) { // Free other state (managed objects). + if (stream != null) + { + stream.Close(); + stream = null; + } } // Free your own state (unmanaged objects). // Set large fields to null. - if (stream != null) - { - stream.Close(); - stream = null; - } + } #endregion -- cgit v1.1