apr_thread_proc.h (apr-1.6.5.tar.bz2) | : | apr_thread_proc.h (apr-1.7.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 818 | skipping to change at line 818 | |||
* @warning This must be called before any threads are created | * @warning This must be called before any threads are created | |||
*/ | */ | |||
APR_DECLARE(apr_status_t) apr_setup_signal_thread(void); | APR_DECLARE(apr_status_t) apr_setup_signal_thread(void); | |||
/** | /** | |||
* Make the current thread listen for signals. This thread will loop | * Make the current thread listen for signals. This thread will loop | |||
* forever, calling a provided function whenever it receives a signal. That | * forever, calling a provided function whenever it receives a signal. That | |||
* functions should return 1 if the signal has been handled, 0 otherwise. | * functions should return 1 if the signal has been handled, 0 otherwise. | |||
* @param signal_handler The function to call when a signal is received | * @param signal_handler The function to call when a signal is received | |||
* apr_status_t apr_signal_thread((int)(*signal_handler)(int signum)) | * apr_status_t apr_signal_thread((int)(*signal_handler)(int signum)) | |||
* @note Synchronous signals like SIGABRT/SIGSEGV/SIGBUS/... are ignored by | ||||
* apr_signal_thread() and thus can't be waited by this function (they remain | ||||
* handled by the operating system or its native signals interface). | ||||
* @remark In APR version 1.6 and ealier, SIGUSR2 was part of these ignored | ||||
* signals and thus was never passed in to the signal_handler. From APR 1.7 | ||||
* this is no more the case so SIGUSR2 can be handled in signal_handler and | ||||
* acted upon like the other asynchronous signals. | ||||
*/ | */ | |||
APR_DECLARE(apr_status_t) apr_signal_thread(int(*signal_handler)(int signum)); | APR_DECLARE(apr_status_t) apr_signal_thread(int(*signal_handler)(int signum)); | |||
#endif /* (APR_HAVE_SIGWAIT || APR_HAVE_SIGSUSPEND) && !defined(OS2) */ | #endif /* (APR_HAVE_SIGWAIT || APR_HAVE_SIGSUSPEND) && !defined(OS2) */ | |||
/** | /** | |||
* Get the child-pool used by the thread from the thread info. | * Get the child-pool used by the thread from the thread info. | |||
* @return apr_pool_t the pool | * @return apr_pool_t the pool | |||
*/ | */ | |||
APR_POOL_DECLARE_ACCESSOR(thread); | APR_POOL_DECLARE_ACCESSOR(thread); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |