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

Pthread KILL

This commit is contained in:
2018-06-15 19:14:30 +02:00
parent 415ef4807c
commit 3126e57610
7 changed files with 37 additions and 6 deletions

View File

@ -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;