1

synchronize textheavy demos

This commit is contained in:
2022-07-17 01:27:22 +02:00
parent b158f98639
commit e7985f4270
5 changed files with 19 additions and 17 deletions

View File

@ -8,13 +8,13 @@
class PreemptiveLoopThread : public Thread {
private:
int id;
Semaphore* sem;
// Semaphore* sem;
PreemptiveLoopThread(const PreemptiveLoopThread& copy) = delete; // Verhindere Kopieren
public:
// Gibt der Loop einen Stack und eine Id.
PreemptiveLoopThread(int i, Semaphore* sem) : id(i), sem(sem) {}
PreemptiveLoopThread(int i) : id(i) {}
// Zaehlt einen Zaehler hoch und gibt ihn auf dem Bildschirm aus.
void run() override;