Skip to content

Commit

Permalink
Exchange pthread_sigqueue() by pthread_kill(), as the former is not s…
Browse files Browse the repository at this point in the history
…upported by MacOS.
  • Loading branch information
IdWV committed Jan 4, 2025
1 parent efa9817 commit a8398e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/async/queuer.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ async_callback_queuer_wakeup( const async_callback_queuer_t *queuer )

DEBUG_PRINTF( "%-1.3lf Wakeup script vm=%p\n", async_manager_uptime( queuer->manager ), queuer->manager->vm );
// send a signal to the script thread;
union sigval info = {0};
info.sival_ptr = (void *)queuer->thread;

pthread_sigqueue(queuer->thread, SIGNEWCALLBACK, info);
pthread_kill( queuer->thread, SIGNEWCALLBACK );
}

void async_sleep( async_manager_t *manager, int64_t msec )
Expand Down

0 comments on commit a8398e8

Please sign in to comment.