Finished testing on ARM64

This commit is contained in:
Brychan Dempsey 2021-04-30 17:38:44 +12:00
parent e33877f0a3
commit f3b1f84742

View File

@ -57,7 +57,7 @@
#define true 1 #define true 1
#endif #endif
// Print the number of people in the lifts & on the floors // Print the number of people in the lifts & on the floors
#define POPULATIONS //#define POPULATIONS
// -------------------------------------------------- // --------------------------------------------------
// Information about a floor in the building // Information about a floor in the building
@ -112,7 +112,7 @@ void print_at_xy_fast(int x, int y, const char *s)
gotoxy(x, y); gotoxy(x, y);
// Slow things down // Slow things down
//Sleep(0); Sleep(0);
// Print the string // Print the string
printf("%s", s); printf("%s", s);
@ -120,7 +120,7 @@ void print_at_xy_fast(int x, int y, const char *s)
// Move cursor out of the way // Move cursor out of the way
gotoxy(42, NFLOORS + 2); gotoxy(42, NFLOORS + 2);
// flush the stream and release the semaphore // flush the stream and release the semaphore
fflush(stdout); //fflush(stdout);
semaphore_signal(&printSemaphore); semaphore_signal(&printSemaphore);
} }
#endif #endif
@ -136,7 +136,7 @@ void print_at_xy(int x, int y, const char *s)
gotoxy(x, y); gotoxy(x, y);
// Slow things down // Slow things down
//Sleep(1); Sleep(1);
// Print the string // Print the string
printf("%s", s); printf("%s", s);
@ -144,7 +144,7 @@ void print_at_xy(int x, int y, const char *s)
// Move cursor out of the way // Move cursor out of the way
gotoxy(42, NFLOORS + 2); gotoxy(42, NFLOORS + 2);
// flush the stream and release the semaphore // flush the stream and release the semaphore
fflush(stdout); //fflush(stdout);
semaphore_signal(&printSemaphore); semaphore_signal(&printSemaphore);
} }
@ -525,7 +525,7 @@ void *update_floor_counts(void *p)
} }
} }
Sleep(0); //Sleep(0);
} }
#endif #endif