Apply the same anti-race improvements implemented on the non-threaded signal checker to the threaded signal checker.
Still check for a negative id to prevent the signal message from being printed more than once.
#if !defined(_di_example_signal_check_) && !defined(_di_thread_support_)
f_status_t example_signal_check(example_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_fake_signal_check_) && !defined(_di_thread_support_)
f_status_t fake_signal_check(fake_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_firewall_signal_check_) && !defined(_di_thread_support_)
f_status_t firewall_signal_check(firewall_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_fss_identify_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_identify_signal_check(fss_identify_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_fss_read_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_read_signal_check(fss_read_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_fss_write_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_write_signal_check(fss_write_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_iki_read_signal_check_) && !defined(_di_thread_support_)
f_status_t iki_read_signal_check(iki_read_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_iki_write_signal_check_) && !defined(_di_thread_support_)
f_status_t iki_write_signal_check(iki_write_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_status_code_signal_check_) && !defined(_di_thread_support_)
f_status_t status_code_signal_check(status_code_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
#if !defined(_di_utf8_signal_check_) && !defined(_di_thread_support_)
f_status_t utf8_signal_check(utf8_main_t * const main) {
- if (!main || main->program.signal.id == -1) return F_false;
+ if (!main) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);