diff options
| author | Martin Willi <martin@revosec.ch> | 2013-10-23 15:50:17 +0200 |
|---|---|---|
| committer | Martin Willi <martin@revosec.ch> | 2013-11-06 10:31:00 +0100 |
| commit | bbb62267e030606325d16407ecce092ad3700a4b (patch) | |
| tree | fa7b451e60dc409be7fe8f60d5193fcaa15cbd3a /src | |
| parent | 7a13990964f2d8e5d2e85493c00a78229912e6e5 (diff) | |
| download | strongswan-bbb62267e030606325d16407ecce092ad3700a4b.tar.bz2 strongswan-bbb62267e030606325d16407ecce092ad3700a4b.tar.xz | |
thread: Note that tread_cancellation_point temporarily activates cancelability
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstrongswan/threading/thread.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libstrongswan/threading/thread.h b/src/libstrongswan/threading/thread.h index 31b9e1b3a..8d3c30e9b 100644 --- a/src/libstrongswan/threading/thread.h +++ b/src/libstrongswan/threading/thread.h @@ -71,7 +71,6 @@ typedef void *(*thread_main_t)(void *arg); */ typedef void (*thread_cleanup_t)(void *arg); - /** * Thread wrapper implements simple, portable and advanced thread functions. * @@ -110,10 +109,8 @@ struct thread_t { * a call to exit. */ void *(*join)(thread_t *this); - }; - /** * Create a new thread instance. * @@ -168,6 +165,10 @@ bool thread_cancelability(bool enable); /** * Force creation of a cancellation point in the calling thread. + * + * This temporarily enables thread cancelability, tests for a pending + * cancellation request and then disables cancelability again if it was + * disabled before the call to thread_cancellation_point(). */ void thread_cancellation_point(); @@ -188,6 +189,4 @@ void threads_init(); */ void threads_deinit(); - #endif /** THREADING_THREAD_H_ @} */ - |
