cppthread 1.1.16
C++ Thread Library
Classes | Enumerations
runner.h File Reference

Thread Runner and Managers. More...

#include <cppthread/mutex.h>
#include <string>
#include <vector>
Include dependency graph for runner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cppthread::runner
 The runner is the class that wraps the actual system thread. More...
 

Enumerations

enum class  cppthread::leave_status_t { LEAVE_STATUS_NORMAL , LEAVE_STATUS_INITIALIZATION_FAILED , LEAVE_STATUS_THREAD_FAILED , LEAVE_STATUS_INSTRUMENTATION }
 The exit status. More...
 

Detailed Description

This file includes the declaration and implementation (For templates) of classes used to manage threads the easy way. Especially, our implementation is aware of object destructors so a thread manager (snap_thread) can be destroyed. It will automatically and properly wait for its runner (the actual system pthread) to exit before finishing up its and its runner clean up.

Definition in file runner.h.

Enumeration Type Documentation

◆ leave_status_t

enum class cppthread::leave_status_t
strong

When the runner exits, the run() function saves the status of how the function exited. It can be useful to know how the run() function exited to decide on how to react.

Definition at line 52 of file runner.h.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.