#include <pthread.h>
Go to the source code of this file.
Namespaces | |
namespace | protlib |
Defines | |
#define | install_cleanup(f, m) pthread_cleanup_push((void (*)(void *)) f, (void *) m) |
install cleanup handler | |
#define | install_cleanup_mutex(m) install_cleanup(pthread_mutex_unlock,m) |
install cleanup handler for mutex | |
#define | install_cleanup_mutex_lock(m) install_cleanup_mutex(m) pthread_mutex_lock(m) |
lock mutex and install cleanup handler | |
#define | install_cleanup_thread_lock(ttype, tp) install_cleanup(call_unlock<ttype>,tp) tp->lock() |
Lock thread and install cleanup handler. | |
#define | uninstall_cleanup(exec) pthread_cleanup_pop(exec) |
uninstall cleanup handler | |
Functions | |
template<class T > | |
void | protlib::call_unlock (void *pobj) |
unlock template | |
void | protlib::call_void_fun (void(*f)()) |
call void function |
preprocessor macros to install cleanup handlers for threads ----------------------------------------------------------
Definition in file cleanuphandler.h.