source/ariba/utility/transport/tcpip/protlib/cleanuphandler.h File Reference

#include <pthread.h>

Include dependency graph for cleanuphandler.h:

This graph shows which files directly or indirectly include this file:

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


Detailed Description

----------------------------------------*- mode: C++; -*--

preprocessor macros to install cleanup handlers for threads ----------------------------------------------------------

Id
cleanuphandler.h 2549 2007-04-02 22:17:37Z bless
HeadURL
https://svn.ipv6.tm.uka.de/nsis/protlib/trunk/include/cleanuphandler.h

Definition in file cleanuphandler.h.


Generated on Fri Aug 14 23:37:50 2009 for Ariba by  doxygen 1.5.8