1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-10 11:49:24 +00:00

Petit refactor avec des signaux

This commit is contained in:
2018-06-15 11:50:38 +02:00
parent 741a98f926
commit ab17d4fa0e
10 changed files with 56 additions and 17 deletions

View File

@ -35,8 +35,9 @@ void start_all_threads_SharedData(THIS(SharedData)){
List * visitors = NULL;
if (this->threads == NULL){
if (this->main_building == NULL)
if (this->main_building == NULL) {
CRASH("No building attached to SharedData and thus no thread can be created\n");
}
else {
residents = this->main_building->residents;
visitors = this->main_building->visitors;