diff OrthancFramework/Sources/MultiThreading/Semaphore.h @ 4819:70d2a97ca8cb openssl-3.x

integration mainline->openssl-3.x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Nov 2021 13:12:32 +0100
parents 4e765c18ace7
children 7053502fbf97
line wrap: on
line diff
--- a/OrthancFramework/Sources/MultiThreading/Semaphore.h	Mon Aug 30 22:21:24 2021 +0200
+++ b/OrthancFramework/Sources/MultiThreading/Semaphore.h	Thu Nov 25 13:12:32 2021 +0100
@@ -36,16 +36,16 @@
     boost::mutex mutex_;
     boost::condition_variable condition_;
 
+  public:
+    explicit Semaphore(unsigned int availableResources);
+
+    unsigned int GetAvailableResourcesCount() const;
+
     void Release(unsigned int resourceCount = 1);
 
     void Acquire(unsigned int resourceCount = 1);
 
     bool TryAcquire(unsigned int resourceCount = 1);
-  public:
-    explicit Semaphore(unsigned int availableResources);
-
-    unsigned int GetAvailableResourcesCount() const;
-
 
     class Locker : public boost::noncopyable
     {