AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
aws-cpp-sdk-core
include
aws
core
utils
threading
Semaphore.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
aws/core/Core_EXPORTS.h
>
9
#include <mutex>
10
#include <condition_variable>
11
12
namespace
Aws
13
{
14
namespace
Utils
15
{
16
namespace
Threading
17
{
18
class
AWS_CORE_API
Semaphore
{
19
public
:
24
Semaphore
(
size_t
initialCount,
size_t
maxCount);
28
void
WaitOne
();
32
void
Release
();
36
void
ReleaseAll
();
37
private
:
38
size_t
m_count;
39
const
size_t
m_maxCount;
40
std::mutex m_mutex;
41
std::condition_variable m_syncPoint;
42
};
43
}
44
}
45
}
Core_EXPORTS.h
AWS_CORE_API
#define AWS_CORE_API
Definition:
Core_EXPORTS.h:26
Aws::Utils::Threading::Semaphore
Definition:
Semaphore.h:18
Aws::Utils::Threading::Semaphore::WaitOne
void WaitOne()
Aws::Utils::Threading::Semaphore::ReleaseAll
void ReleaseAll()
Aws::Utils::Threading::Semaphore::Release
void Release()
Aws::Utils::Threading::Semaphore::Semaphore
Semaphore(size_t initialCount, size_t maxCount)
Aws
Definition:
AmazonSerializableWebServiceRequest.h:16
Generated by
1.9.7
Privacy |
Site terms |
Cookie preferences