AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NumThreadGuard Class Referencefinal

NumThreadGuard sets current number of threads to newNum and resets number of threads during destruction. More...

#include <NumThreadGuard.h>

Public Member Functions

 NumThreadGuard (const int newNum)
 Construct a new NumThreadGuard object and sets current number of threads to newNum.
 
 ~NumThreadGuard ()
 Destroy the NumThreadGuard object and reset number of threads.
 
 NumThreadGuard (const NumThreadGuard &)=delete
 delete copy constructor.
 
NumThreadGuardoperator= (const NumThreadGuard &)=delete
 delete copy assignment constructor.
 

Detailed Description

NumThreadGuard sets current number of threads to newNum and resets number of threads during destruction.

Constructor & Destructor Documentation

◆ NumThreadGuard()

NumThreadGuard::NumThreadGuard ( const int  newNum)
inlineexplicit

Construct a new NumThreadGuard object and sets current number of threads to newNum.

Parameters
newNumnew number of threads

Member Function Documentation

◆ operator=()

NumThreadGuard & NumThreadGuard::operator= ( const NumThreadGuard )
delete

delete copy assignment constructor.

Returns
deleted, so not important

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