activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r1062990 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x: ./ src/main/csharp/Util/MessageDispatchChannel.cs src/main/csharp/Util/ThreadUtil.cs
Date Mon, 24 Jan 2011 21:33:44 GMT
Author: jgomes
Date: Mon Jan 24 21:33:43 2011
New Revision: 1062990

URL: http://svn.apache.org/viewvc?rev=1062990&view=rev
Log:
Stub out WaitHandle.WaitAny() with platform wrapper implementation in ThreadUtil.WaitAny().

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/   (props changed)
    activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/MessageDispatchChannel.cs
    activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/ThreadUtil.cs

Propchange: activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/
------------------------------------------------------------------------------
    svn:mergeinfo = /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk:1062960

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/MessageDispatchChannel.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/MessageDispatchChannel.cs?rev=1062990&r1=1062989&r2=1062990&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/MessageDispatchChannel.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/MessageDispatchChannel.cs
Mon Jan 24 21:33:43 2011
@@ -170,7 +170,7 @@ namespace Apache.NMS.Stomp.Util
             {
                 this.mutex.ReleaseMutex();
                 this.waiter.Reset();
-                WaitHandle.WaitAny(this.waiters, (int)timeout.TotalMilliseconds, false);
+                ThreadUtil.WaitAny(this.waiters, (int)timeout.TotalMilliseconds, false);
                 this.mutex.WaitOne();
             }
 

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/ThreadUtil.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/ThreadUtil.cs?rev=1062990&r1=1062989&r2=1062990&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/ThreadUtil.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Util/ThreadUtil.cs
Mon Jan 24 21:33:43 2011
@@ -33,5 +33,14 @@ namespace Apache.NMS.Stomp.Util
             shutdownEvent.WaitOne(timeout, false);
 #endif
        }
+
+       public static void WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout, bool
exitContext)
+       {
+#if NETCF
+           // TODO: Implement .NET CF version of WaitAny().
+#else
+           WaitHandle.WaitAny(waitHandles, millisecondsTimeout, exitContext);
+#endif
+       }
     }
 }



Mime
View raw message