# HG changeset patch # User Sebastien Jodogne # Date 1535043134 -7200 # Node ID c48ddc902e3e73abd145f2401b6565c92df31ea7 # Parent 3ee82c7313e70c32712a69996337d0102154f5a1 note diff -r 3ee82c7313e7 -r c48ddc902e3e Plugins/Include/orthanc/OrthancCPlugin.h --- 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).