Wrapper around Container
providing few generic methods which ensure that the underlying container is accessed only by one thread at the same time.
More...
#include <SynchronizedCollection.h>
|
typedef Container::value_type | value_type |
| The value_type represents the type of stored values.
|
|
|
typedef TContainer | Container |
|
|
Container | collection |
|
std::mutex | mutex |
|
std::condition_variable | conditionVar |
|
template<typename TContainer>
class AdblockPlus::SynchronizedCollection< TContainer >
Wrapper around Container
providing few generic methods which ensure that the underlying container is accessed only by one thread at the same time.
template<typename TContainer>
Extracts the first stored element and returns it.
Pay attention that the call of this method blocks the execution until there is at least one element added to the collection.
template<typename TContainer>
Adds value
normally to the end.
- Parameters
-
The documentation for this class was generated from the following file: