changeset 3483:4d26261fd05a

get semaphore count for debug purpose
author Alain Mazy <alain@mazy.be>
date Sat, 03 Aug 2019 10:12:09 +0200
parents 10fd1b9ae044
children f22ed747fa13
files Core/MultiThreading/Semaphore.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/MultiThreading/Semaphore.h	Thu Aug 01 18:00:22 2019 +0200
+++ b/Core/MultiThreading/Semaphore.h	Sat Aug 03 10:12:09 2019 +0200
@@ -53,6 +53,12 @@
   public:
     explicit Semaphore(unsigned int availableResources);
 
+    unsigned int GetAvailableResourcesCount() const
+    {
+      return availableResources_;
+    }
+
+
     class Locker : public boost::noncopyable
     {
     private: