Mobile API Reference  MicroStrategy 2019
SemaphoreImpl.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : SemaphoreImpl.h
3 // AUTHOR : Douglas Meyer
4 // CREATION : 10/29/2001
5 // Copyright (C) MicroStrategy Incorporated 2001
6 //==============================================================================================
7 #ifndef MSynch_SemaphoreImpl_h
8 #define MSynch_SemaphoreImpl_h
9 
10 #include "../Semaphore.h"
11 #include "../ProtectedSource/InprocessSemaphore.h"
12 
13 namespace MSynch
14 {
16  public Semaphore
17  {
18  public:
19  SemaphoreImpl(unsigned Int32 inInitialAvailableResourceCount,unsigned Int32 inMaximumResourceCount);
20 
21  void Delete() throw();
22 
24 
25  // Same as WaitForResource but does not timeout. Waits forever for resource.
27 
28  void ResourceIsAvailable();
29 
30  private:
31  virtual ~SemaphoreImpl() throw();
32  InprocessSemaphore mSemaphore;
33  };
34 }
35 
36 #endif // MSynch_SemaphoreImpl_h
Semaphore::WaitForResourceResult WaitForResource(unsigned Int32 iMilliseconds)
Definition: ReferenceCountedImpl.h:18
#define Int32
Definition: BasicTypes.h:20
SemaphoreImpl(unsigned Int32 inInitialAvailableResourceCount, unsigned Int32 inMaximumResourceCount)
WaitForResourceResult
Definition: Semaphore.h:38
Definition: SemaphoreImpl.h:15
Definition: InprocessSemaphore.h:18
Definition: Semaphore.h:31
Semaphore::WaitForResourceResult WaitForeverForResource()