question

Upvotes
Accepted
301 6 17 27

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.

authenticationc++DACSopen-dacsmulti-threading
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea