# HG changeset patch # User Alain Mazy # Date 1564819944 -7200 # Node ID f22ed747fa132683707baa7cd3ae62a0e867351d # Parent 4d26261fd05a2b8aad9fc8a0703ae677f560a4ac# Parent 743f45d44849da2c2a55e2c93c6fa8e72bcc672b merge diff -r 743f45d44849 -r f22ed747fa13 Core/MultiThreading/Semaphore.h --- 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: