+void ThreadsManager::wake_up() {
+
+ for (int i = 0; i < activeThreads; i++)
+ {
+ threads[i].do_sleep = false;
+ threads[i].wake_up();
+ }
+}
+
+
+void ThreadsManager::sleep() {
+
+ for (int i = 0; i < activeThreads; i++)
+ threads[i].do_sleep = true;