diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-09-29 15:04:25 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | f41e21a2bbcd1bbf559212092f0f2b119e446756 (patch) | |
tree | 11157d18f5691749e628d443c96eb91d8a3edd63 /broccoli/midbropasad.c | |
parent | 11187a331cc132b990785dfe0012054bf686a5d4 (diff) | |
download | midbro-f41e21a2bbcd1bbf559212092f0f2b119e446756.tar.gz midbro-f41e21a2bbcd1bbf559212092f0f2b119e446756.tar.bz2 |
Add blocking wait when buffer is empty
Diffstat (limited to 'broccoli/midbropasad.c')
-rw-r--r-- | broccoli/midbropasad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/broccoli/midbropasad.c b/broccoli/midbropasad.c index 6db59a5..70a290f 100644 --- a/broccoli/midbropasad.c +++ b/broccoli/midbropasad.c @@ -20,7 +20,8 @@ main(int argc, char **argv) start_data_capture(q); while(true){ printf("Main thread\n"); - sleep(2); + sleep(10); + print_queue(q); } free(q); return 0; |