STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Static Public Member Functions | Public Types
stapl::no_comm_guard Class Reference

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_guardoperator= (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
 

Detailed Description

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.


The documentation for this class was generated from the following file: