distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SignalInformationQueueWrapper.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_SIGNALINFORMATIONQUEUEWRAPPER_HPP_
13 #define INCLUDE_DISTORTOS_SIGNALINFORMATIONQUEUEWRAPPER_HPP_
14 
16 
17 #if CONFIG_SIGNALS_ENABLE == 1
18 
20 
21 namespace distortos
22 {
23 
24 namespace internal
25 {
26 
27 class SignalsReceiverControlBlock;
28 
29 } // namespace internal
30 
33 {
35 
36 public:
37 
40 
43 
52  SignalInformationQueueWrapper(StorageUniquePointer&& storageUniquePointer, const size_t maxElements) :
53  signalInformationQueue_{std::move(storageUniquePointer), maxElements}
54  {
55 
56  }
57 
58 private:
59 
62 };
63 
64 } // namespace distortos
65 
66 #endif // CONFIG_SIGNALS_ENABLE == 1
67 
68 #endif // INCLUDE_DISTORTOS_SIGNALINFORMATIONQUEUEWRAPPER_HPP_
internal::SignalInformationQueue signalInformationQueue_
contained internal::SignalInformationQueue object
Definition: SignalInformationQueueWrapper.hpp:61
internal::SignalInformationQueue::StorageUniquePointer StorageUniquePointer
import StorageUniquePointer type alias from internal::SignalInformationQueue
Definition: SignalInformationQueueWrapper.hpp:42
SignalsReceiverControlBlock class is a structure required by threads for "receiving" of signals...
Definition: SignalsReceiverControlBlock.hpp:41
typename std::aligned_storage< sizeof(QueueNode), alignof(QueueNode)>::type Storage
type of uninitialized storage for QueueNode
Definition: SignalInformationQueue.hpp:49
distortos configuration
Top-level namespace of distortos project.
std::unique_ptr< Storage[], void(&)(Storage *)> StorageUniquePointer
unique_ptr (with deleter) to Storage[]
Definition: SignalInformationQueue.hpp:52
SignalInformationQueue class can be used for queuing of SignalInformation objects.
Definition: SignalInformationQueue.hpp:34
SignalInformationQueue class header.
SignalInformationQueueWrapper class is a container for internal::SignalInformationQueue.
Definition: SignalInformationQueueWrapper.hpp:32
SignalInformationQueueWrapper(StorageUniquePointer &&storageUniquePointer, const size_t maxElements)
SignalInformationQueueWrapper&#39;s constructor.
Definition: SignalInformationQueueWrapper.hpp:52
internal::SignalInformationQueue::Storage Storage
import Storage type alias from internal::SignalInformationQueue
Definition: SignalInformationQueueWrapper.hpp:39