commit e0ae4be1fafe8164b3b644eeed15c76c39866a3e
parent f9fc2c00a534e6f30a6c12b7de78cf46d2a019ef
Author: Tizian Leonhardt <tizianleonhardt@web.de>
Date: Sun, 29 Nov 2020 23:23:53 +0100
Add comment regarding msleep
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/backdoor.c b/src/backdoor.c
@@ -65,6 +65,8 @@ unbackdoor(void)
int cur;
+ //Sleeping here is very important, as without it
+ //we would stall the CPU..
while ((cur = atomic_read(&read_count)) > 0) {
DEBUG_INFO("Waiting for %d tasks", cur);
msleep(250);