Registers the given context as a no communication section of code. More...
Public Member Functions | |
no_comm_guard (void) | |
Enables the no-communication checking for the current context. | |
no_comm_guard (no_comm_guard const &)=delete | |
no_comm_guard & | operator= (no_comm_guard const &)=delete |
~no_comm_guard (void) | |
Disables the no-communication checking for the current context. | |
Static Public Member Functions | |
static bool | enabled (key_type const &key) |
Returns true if a no_comm_guard is enabled for the given context id. | |
Public Types | |
typedef runtime::context_id | key_type |
Registers the given context as a no communication section of code.
If any communication happens within the scope of a no_comm_guard object, then the execution aborts with an error message.
no_comm_guard is used during development to guarantee that a piece of code never does any kind of unexpected communication.