question

Upvotes
Accepted
301 12 26 33

OpenDACS API thread-safe?

Can you confirm if Open DACS API is thread-safe? we would like to share DACSAuthorizationAgent on multi-thread, Do we need to add lock mechanism in our application.

c++authenticationDACSopen-dacsmulti-threading
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@Rupert Schilling

Referring to Open DACS Developer Guide (DACSAUTH_devguide.pdf), Open DACS API is thread-safe. Basically the method of the same DACSAuthorizationAgent can be called by different threads. Open DACS API already implemented the lock mechanism to handle the multi-thread access, so no need to implement the lock mechanism in your application.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.