Description
Found in
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Util/FifoMessageDispatchChannel.cs?view=markup
and in some other places:
private readonly Mutex mutex = new Mutex();
...
lock(this.mutex)
...
Monitor.PulseAll(this.mutex);
...
etc.
Guys, do you really know .Net? ;-D
Monitor and lock (which uses Monitor internally) work for any reference type instances. Please change the field type to object and change the name too. This is misleading now.