1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-11 12:19:25 +00:00

BEHOLD ! The threadinator !

This commit is contained in:
2018-06-11 01:58:52 +02:00
parent bd5860579e
commit fd2463904a
10 changed files with 110 additions and 78 deletions

View File

@ -46,8 +46,8 @@ void repair_Elevator(THIS(Elevator)){
void *runnable_Elevator(void * void_this){
/* This is where the thread logic will be implemented */
Elevator * this = (Elevator*) void_this;
/* Returning this to keep gcc and clang quiet while developing, will return NULL */
return this;
printf("Je suis l'ascenseur %s\n", this->name);
return NULL;
}
Elevator *_init_Elevator(char * name){