Class secure_thread#

Inheritance Relationships#

Base Type#

  • public thread

Class Documentation#

class secure_thread : public thread#

Secure thread implementation based on std::thread transferring the permissions from the creation thread to the execution thread.

Public Functions

secure_thread() = default#

Default constructor.

secure_thread(const secure_thread &rthread) = delete#

Copy constructor is deleted.

Parameters:

rthread[in] Reference to the thread object.

inline secure_thread(secure_thread &&rthread)#

Move constructor.

Parameters:

rthread[in] Reference to the thread object.

template<class F, class ...Args>
inline explicit secure_thread(F &&f, Args&&... args)#

Assignment constructor for thread execution.

Template Parameters:
  • F – The function to execute.

  • Args – The argument types of the function to execute.

Parameters:
  • f[in] Reference to the function.

  • args[in] Reference to zero or more arguments.

inline secure_thread &operator=(secure_thread &&rthread)#

Move assignment operator.

Parameters:

rthread[in] Reference to the thread object.

Returns:

Reference to this object.