Add Loop::setSilent

This commit is contained in:
Alex Hultman
2020-09-18 23:42:21 +02:00
parent 5507dd5560
commit 270308f104
3 changed files with 13 additions and 2 deletions
+5
View File
@@ -164,6 +164,11 @@ public:
void integrate() {
us_loop_integrate((us_loop_t *) this);
}
/* Dynamically change this */
void setSilent(bool silent) {
((LoopData *) us_loop_ext((us_loop_t *) this))->noMark = silent;
}
};
/* Can be called from any thread to run the thread local loop */