linux: Use Unix signals to notify when a timer is pending

Use Unix signals in software timer implementation.  This makes the
code a little more efficient.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor committed 2021-11-02 13:27:51 -04:00
1 parent ffeafb690b
commit 913d099261
5 files changed
+105 -57

No files matched your search

+2
View File
@@ -163,7 +163,9 @@ command_config_ds18b20(uint32_t *args)
goto fail4;
pthread_t reader_tid; // Not used
timer_disable_signals();
ret = pthread_create(&reader_tid, NULL, reader_start_routine, d);
timer_enable_signals();
if (ret)
goto fail5;