#include <thread_cancellation.hpp>
Inherited by libdar::fichier, libdar::null_file, and libdar::tuyau.
Public Member Functions | |
| thread_cancellation () | |
| the constructor | |
| virtual | ~thread_cancellation () |
| the destructor | |
| void | check_self_cancellation () const |
| the checkpoint where is seen whether the current libdar call must abort | |
| void | block_delayed_cancellation (bool mode) |
Static Public Member Functions | |
| static void | init () |
| must be called once before any call to thread_cancellation class's methods | |
| static void | cancel (pthread_t tid, bool x_immediate, U_64 x_flag) |
| marks the thread given in argument as to be canceled | |
| static bool | cancel_status (pthread_t tid) |
| gives the cancellation status of the given thread ID | |
| static bool | clear_pending_request (pthread_t tid) |
| abort the pending thread cancellation | |
| static U_I | count () |
| method for debugging/control purposes | |
the class provides a checkpoints to inherited classes and a mechanism that let any libdar external code to ask the termination of a libdar call executing in a given thread. This does not imply the termination of the thread itself but it implies the return of the thread execution to external program.
Definition at line 67 of file thread_cancellation.hpp.
|
|
|
|
||||||||||||||||
|
marks the thread given in argument as to be canceled
|
|
|
gives the cancellation status of the given thread ID
|
|
|
the checkpoint where is seen whether the current libdar call must abort
|
|
|
abort the pending thread cancellation
|
1.4.2