distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SignalsCatcher.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_SIGNALSCATCHER_HPP_
13 #define INCLUDE_DISTORTOS_SIGNALSCATCHER_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  SignalsCatcher(StorageUniquePointer&& storageUniquePointer, const size_t storageSize) :
53  signalsCatcherControlBlock_{std::move(storageUniquePointer), storageSize}
54  {
55 
56  }
57 
58 private:
59 
62 };
63 
64 } // namespace distortos
65 
66 #endif // CONFIG_SIGNALS_ENABLE == 1
67 
68 #endif // INCLUDE_DISTORTOS_SIGNALSCATCHER_HPP_
internal::SignalsCatcherControlBlock::StorageUniquePointer StorageUniquePointer
import StorageUniquePointer type alias from internal::SignalsCatcherControlBlock
Definition: SignalsCatcher.hpp:42
internal::SignalsCatcherControlBlock signalsCatcherControlBlock_
contained internal::SignalsCatcherControlBlock object
Definition: SignalsCatcher.hpp:61
std::aligned_storage< sizeof(Association), alignof(Association)>::type Storage
type of uninitialized storage for Association objects
Definition: SignalsCatcherControlBlock.hpp:41
SignalsCatcherControlBlock class is a structure required by threads for "catching" and "handling" of ...
Definition: SignalsCatcherControlBlock.hpp:33
SignalsCatcherControlBlock class header.
SignalsCatcher(StorageUniquePointer &&storageUniquePointer, const size_t storageSize)
SignalsCatcher&#39;s constructor.
Definition: SignalsCatcher.hpp:52
SignalsReceiverControlBlock class is a structure required by threads for "receiving" of signals...
Definition: SignalsReceiverControlBlock.hpp:41
distortos configuration
Top-level namespace of distortos project.
internal::SignalsCatcherControlBlock::Storage Storage
import Storage type alias from internal::SignalsCatcherControlBlock
Definition: SignalsCatcher.hpp:39
std::unique_ptr< Storage[], void(&)(Storage *)> StorageUniquePointer
unique_ptr (with deleter) to Storage[]
Definition: SignalsCatcherControlBlock.hpp:44
SignalsCatcher class is a container for internal::SignalsCatcherControlBlock.
Definition: SignalsCatcher.hpp:32