From af3df42591c39e7ac732f6f32ceb78ac5f81a144 Mon Sep 17 00:00:00 2001 From: Brychan Dempsey Date: Tue, 4 May 2021 11:40:18 +1200 Subject: [PATCH] Finalised docs --- assignment2_handout.c | 2 -- details.md | 8 +++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assignment2_handout.c b/assignment2_handout.c index 6cf8fc0..e2fe251 100644 --- a/assignment2_handout.c +++ b/assignment2_handout.c @@ -145,8 +145,6 @@ void print_at_xy(int x, int y, const char *s) // Move cursor out of the way gotoxy(42, NFLOORS + 2); - // flush the stream and release the semaphore - //fflush(stdout); semaphore_signal(&printSemaphore); } diff --git a/details.md b/details.md index ec8fdab..7614a72 100644 --- a/details.md +++ b/details.md @@ -14,4 +14,10 @@ ### Other Changes: 1. Added a `POPULATION` preprocessor definition that will print the current counts of people on each floor, and the current floor positions of all people threads. Useful for detecting if someone is stuck. -2. Changed the speed settings to allow a wider range of debug values +2. Changed the speed definitions to allow a wider range of values + +3. Added an explicit definition for `true` so that it may compile in Windows +i.e. +```c +#define true TRUE +``` \ No newline at end of file