static void init_rtsigs (void) { #if !__ASSUME_REALTIME_SIGNALS if (__builtin_expect (!kernel_has_rtsig (), 0)) { current_rtmin = -1; current_rtmax = -1; # if __SIGRTMAX - __SIGRTMIN >= 3 __pthread_sig_restart = SIGUSR1; __pthread_sig_cancel = SIGUSR2; __pthread_sig_debug = 0; # endif } else #endif /* __ASSUME_REALTIME_SIGNALS */ { #if __SIGRTMAX - __SIGRTMIN >= 3 current_rtmin = __SIGRTMIN + 3; # if !__ASSUME_REALTIME_SIGNALS __pthread_restart = __pthread_restart_new; __pthread_suspend = __pthread_wait_for_restart_signal; __pthread_timedsuspend = __pthread_timedsuspend_new; # endif /* __ASSUME_REALTIME_SIGNALS */ #else current_rtmin = __SIGRTMIN; #endif current_rtmax = __SIGRTMAX; } rtsigs_initialized = 1; }
static void init (void) { if (!kernel_has_rtsig ()) { current_rtmin = -1; current_rtmax = -1; } else { current_rtmin = __SIGRTMIN + 3; current_rtmax = __SIGRTMAX; } initialized = 1; }