#include <resourceToken.hpp>
|
| using | Signal = boost::signals2::signal< void()> |
| | Signal that emits on changes to resources. More...
|
| |
Definition at line 38 of file resourceToken.hpp.
◆ Signal
◆ Resource() [1/2]
| daq::Resource::Resource |
( |
| ) |
|
|
default |
◆ Resource() [2/2]
| daq::Resource::Resource |
( |
unsigned |
limit | ) |
|
|
inlineexplicitnoexcept |
◆ Acquire()
◆ AsyncAcquire()
◆ Connect()
| boost::signals2::connection daq::Resource::Connect |
( |
Signal::slot_type const & |
slot | ) |
|
Connect to signal that is emitted when a resource become available.
- Note
- There's no guarantee that once signalled there are resources still available.
Definition at line 52 of file resourceToken.cpp.
◆ GetLimit()
| unsigned daq::Resource::GetLimit |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetUsed()
| unsigned daq::Resource::GetUsed |
( |
| ) |
const |
|
inlinenoexcept |
◆ HasResource()
| bool daq::Resource::HasResource |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=()
◆ Release()
| void daq::Resource::Release |
( |
| ) |
|
|
protectednoexcept |
◆ SetLimit()
| void daq::Resource::SetLimit |
( |
unsigned |
new_limit | ) |
|
|
inlinenoexcept |
◆ ResourceToken
The documentation for this class was generated from the following files: