Permalink
Browse files

Rename ManagerWaitHandle to WaitHandleGroup.

  • Loading branch information...
1 parent 8f2821d commit 33da61243128ad18efb71d7db55c7313e3f09f2d @alanmcgovern alanmcgovern committed Mar 2, 2011
@@ -7,7 +7,7 @@ namespace MonoTorrent.Client
{
class StoppingMode : Mode
{
- ManagerWaitHandle handle = new ManagerWaitHandle("Global");
+ WaitHandleGroup handle = new WaitHandleGroup("Global");
public override TorrentState State
{
@@ -5,7 +5,7 @@
namespace MonoTorrent.Client
{
- public class ManagerWaitHandle : WaitHandle
+ class WaitHandleGroup : WaitHandle
{
private List<WaitHandle> handles;
private string name;
@@ -15,15 +15,15 @@ public string Name
get { return name; }
}
- public ManagerWaitHandle(string name)
+ public WaitHandleGroup(string name)
{
this.name = name;
handles = new List<WaitHandle>();
}
public void AddHandle(WaitHandle handle, string name)
{
- ManagerWaitHandle h = new ManagerWaitHandle(name);
+ WaitHandleGroup h = new WaitHandleGroup(name);
h.handles.Add(handle);
handles.Add(h);
}
@@ -70,7 +70,7 @@ public override string ToString()
foreach (WaitHandle h in handles)
{
sb.Append("WaitHandle from: ");
- sb.Append(((ManagerWaitHandle)h).name);
+ sb.Append(((WaitHandleGroup)h).name);
sb.Append(". State: ");
sb.Append(h.WaitOne(0, false) ? "Signalled" : "Unsignalled");
sb.AppendLine();
@@ -130,7 +130,6 @@
<Compile Include="MonoTorrent.Client\MainLoop.cs" />
<Compile Include="MonoTorrent.Client\Managers\InactivePeerManager.cs" />
<Compile Include="MonoTorrent.Client\Managers\LocalPeerManager.cs" />
- <Compile Include="MonoTorrent.Client\ManagerWaitHandle.cs" />
<Compile Include="MonoTorrent.Client\Messages\FastPeerExtensions\IFastPeerMessage.cs" />
<Compile Include="MonoTorrent.Client\Messages\LibtorrentMessages\ExtensionSupports.cs" />
<Compile Include="MonoTorrent.Client\Messages\UdpTrackerMessages\MessageType.cs" />
@@ -331,6 +330,7 @@
<Compile Include="MonoTorrent.Common\RawTrackerTiers.cs" />
<Compile Include="MonoTorrent.Common\RawTrackerTier.cs" />
<Compile Include="MonoTorrent.Common\EditableTorrent.cs" />
+ <Compile Include="MonoTorrent.Client\WaitHandleGroup.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
@@ -378,4 +378,4 @@
<ItemGroup>
<Folder Include="MonoTorrent.Client\NetworkIO\" />
</ItemGroup>
-</Project>
+</Project>

0 comments on commit 33da612

Please sign in to comment.