Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Is LocalDevice.send thread-safe?
-
Hello All,
I'm using Bacnet4j 3.2.3 version of library. In fact, I have a situation where-in concurrent threads are calling the send(RemoteDevice d, ConfirmedRequestService serviceRequest) method of a LocalDevice object. As far as my testing, I don't see any errors related to concurrency here, however I would like to ask your opinion on this, whether it is already thread-safe or do I need to call LocalDevice.send inside a reentrant-lock?
Thank you very much.
Manoj -
Hi Manoj,
That's quite an old version! I had a look and it certainly appears that it would be thread safe, since actual transmission of messages is handled by queues in the DefaultTransport class, but given it's quite (not even the latest 3.2.x version) outdated from our perspective our working knowledge or support of it is limited.
-
Hi Phil,
Thank you very much your response. Much appreciated.
In fact, I'm seriously considering to upgrade to the latest version, however not sure about the timelines right now.Thank you very much.
Manoj -
Hi Phill,
Which is the current production release for Bacnet4j which I can upgrade to? 4.1.6?
Thanks and appreciate your support.
Manoj