You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/03/15 15:23:33 UTC
[jira] [Closed] (AMQNET-518) lock(this.mutex)
[ https://issues.apache.org/jira/browse/AMQNET-518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish closed AMQNET-518.
-------------------------------
Resolution: Not A Problem
Does not represent a bug.
> lock(this.mutex)
> ----------------
>
> Key: AMQNET-518
> URL: https://issues.apache.org/jira/browse/AMQNET-518
> Project: ActiveMQ .Net
> Issue Type: Wish
> Components: ActiveMQ, NMS
> Reporter: Artem Elkin
> Assignee: Jim Gomes
> Priority: Trivial
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)