yield for scheduler

This commit is contained in:
BENEDEK László 2025-05-09 15:07:51 +02:00
parent 8bf5a26bd8
commit 09ca162abb

View File

@ -1,3 +1,4 @@
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
@ -193,6 +194,7 @@ int main(int argc, char** argv) {
while (!stop) {
ps2000_get_streaming_last_values(unit, &get_overview_buffers);
sched_yield();
}
cleanup(unit);