Expression Templates Library (ETL)
Public Member Functions | Public Attributes | List of all members
etl::detail::parallel_context Struct Reference

RAII helper for setting the context to parallel. More...

#include <context.hpp>

Public Member Functions

 parallel_context ()
 Default construct a parallel context. More...
 
 ~parallel_context ()
 Destruct a parallel context. More...
 
 operator bool ()
 Does nothing, simple trick for section to be nice.
 

Public Attributes

bool old_parallel
 The previous value of parallel.
 

Detailed Description

RAII helper for setting the context to parallel.

Constructor & Destructor Documentation

◆ parallel_context()

etl::detail::parallel_context::parallel_context ( )
inline

Default construct a parallel context.

This saves the previous parallel value and sets parallel to true

◆ ~parallel_context()

etl::detail::parallel_context::~parallel_context ( )
inline

Destruct a parallel context.

This restores the parallel state


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