Mercurial > hg > orthanc
changeset 3484:f22ed747fa13
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Sat, 03 Aug 2019 10:12:24 +0200 |
parents | 4d26261fd05a (diff) 743f45d44849 (current diff) |
children | 5e9fae2faff2 |
files | |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/MultiThreading/Semaphore.h Thu Aug 01 18:36:16 2019 +0200 +++ b/Core/MultiThreading/Semaphore.h Sat Aug 03 10:12:24 2019 +0200 @@ -53,6 +53,12 @@ public: explicit Semaphore(unsigned int availableResources); + unsigned int GetAvailableResourcesCount() const + { + return availableResources_; + } + + class Locker : public boost::noncopyable { private: