Mercurial > hg > orthanc
changeset 2802:c48ddc902e3e
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 Aug 2018 18:52:14 +0200 |
parents | 3ee82c7313e7 |
children | 579acc5e5412 |
files | Plugins/Include/orthanc/OrthancCPlugin.h |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Thu Aug 23 13:52:54 2018 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Thu Aug 23 18:52:14 2018 +0200 @@ -5787,6 +5787,9 @@ * * This function returns the number of Orthanc peers. * + * This function is thread-safe: Several threads sharing the same + * OrthancPluginPeers object can simultaneously call this function. + * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param peers The data structure describing the Orthanc peers. * @result The number of peers. @@ -5829,6 +5832,9 @@ * which corresponds to the key of the "OrthancPeers" configuration * option of Orthanc. * + * This function is thread-safe: Several threads sharing the same + * OrthancPluginPeers object can simultaneously call this function. + * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param peers The data structure describing the Orthanc peers. * @param peerIndex The index of the peer of interest. @@ -5866,6 +5872,9 @@ * * This function returns the base URL to the REST API of some Orthanc peer. * + * This function is thread-safe: Several threads sharing the same + * OrthancPluginPeers object can simultaneously call this function. + * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param peers The data structure describing the Orthanc peers. * @param peerIndex The index of the peer of interest. @@ -5923,6 +5932,9 @@ * Orthanc peer. The result to the query is stored into a newly * allocated memory buffer. The HTTP request will be done according * to the "OrthancPeers" configuration option of Orthanc. + * + * This function is thread-safe: Several threads sharing the same + * OrthancPluginPeers object can simultaneously call this function. * * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param answerBody The target memory buffer (out argument).