mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-11 20:29:24 +00:00
Pthread KILL
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
//
|
||||
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include "Resident.h"
|
||||
|
||||
GETTER(Resident, char *, name);
|
||||
@ -11,6 +12,9 @@ GETTER(Resident, int, apartment_floor);
|
||||
|
||||
void * runnable_Resident(void * void_this){
|
||||
Resident * this = (Resident*) void_this;
|
||||
|
||||
AGENT_OPTIONS
|
||||
|
||||
printf("Je suis le resident %s et je suis a l'etage %d en direction de l'etage %d\n",
|
||||
this->name, this->apartment_floor, this->destination);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user