yield for scheduler
This commit is contained in:
parent
8bf5a26bd8
commit
09ca162abb
@ -1,3 +1,4 @@
|
|||||||
|
#include <sched.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -193,6 +194,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
while (!stop) {
|
while (!stop) {
|
||||||
ps2000_get_streaming_last_values(unit, &get_overview_buffers);
|
ps2000_get_streaming_last_values(unit, &get_overview_buffers);
|
||||||
|
sched_yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup(unit);
|
cleanup(unit);
|
||||||
|
Loading…
Reference in New Issue
Block a user