GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Public Member Functions | List of all members
grppi::native_thread_manager Class Reference

RAII class to manage registration/deregistration pairs. This class allows to manage automatic deregistration of threads through the common RAII pattern. The current thread is registered into the registry at construction and deregistered a destruction. More...

#include <parallel_execution_native.h>

Public Member Functions

 native_thread_manager (thread_registry &registry)
 Saves a reference to the registry and registers current thread. More...
 
 ~native_thread_manager ()
 Deregisters current thread from the registry. More...
 

Detailed Description

RAII class to manage registration/deregistration pairs. This class allows to manage automatic deregistration of threads through the common RAII pattern. The current thread is registered into the registry at construction and deregistered a destruction.

Constructor & Destructor Documentation

grppi::native_thread_manager::native_thread_manager ( thread_registry registry)
inline

Saves a reference to the registry and registers current thread.

grppi::native_thread_manager::~native_thread_manager ( )
inline

Deregisters current thread from the registry.


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