47 Commits

Author SHA1 Message Date
Hugo LAMY
f9abb157c3 ajout correciton screenshot 2022-02-03 23:29:06 +01:00
Hugo LAMY
5f86d2de1c free tous les mallocs 2022-02-02 00:31:51 +01:00
Hugo LAMY
1dc4de3236 mise en page pour rendu, et annule philo inversees car pbm 610 200 100 2022-02-01 18:15:26 +01:00
hugogogo
ef2eb4e921 eleve g3 dans makefile 2022-01-31 19:32:17 +01:00
hugogogo
2fa49b3242 droitier gaucher fonctionne, plus de lock order violated 2022-01-31 18:42:00 +01:00
hugogogo
41726f5e41 mise a la norme 2022-01-31 10:28:26 +01:00
hugogogo
774bdb0a4a en fait droitier gaucher ne marchait pas, revenu a quinconce, toujours pbm lock order 2022-01-31 09:44:55 +01:00
hugogogo
c3ef767bdb implemenation droite gauche fonctionne en changeant technique de temps 2022-01-31 00:17:07 +01:00
hugogogo
7dc4c5a84f possible race conflicts resolut 2022-01-30 15:56:48 +01:00
Hugo LAMY
d9142b9af6 makefile suppress builds directory 2022-01-28 15:16:08 +01:00
Hugo LAMY
836c02f3f5 protection segfault creation zero philosophs + deplacement fichiers dans philo + ajout exeption philo folder dans gitignore 2022-01-27 15:08:56 +01:00
Hugo LAMY
e45ca1331f gestion cas n_eat a zero 2022-01-26 18:58:39 +01:00
Hugo LAMY
232684b73a gestion erreur parsing 2022-01-26 18:01:39 +01:00
Hugo LAMY
eec1a73786 changements avec luke 2022-01-26 17:07:57 +01:00
Hugo LAMY
77f2e6b978 ajout static, renames, pere fouettard tweaks 2022-01-26 16:31:36 +01:00
Hugo LAMY
6d3280631c format pour rendu 2022-01-26 15:37:17 +01:00
Hugo LAMY
b192efa4a9 mise a la norme et renommer fonctions 2022-01-26 15:33:29 +01:00
Hugo LAMY
ab0c4efa35 oubli modif main 2022-01-26 15:06:42 +01:00
Hugo LAMY
bf80fde30b 1 philo ok, deplacement diff_time dans generic, renomme go_sleep, ferme lock en fin 2022-01-26 14:49:02 +01:00
Hugo LAMY
2f747d0563 fonctionne ok sauf pour 1 2022-01-26 13:52:30 +01:00
hugogogo
6561340fb9 check died dans un autre thread et reorganisation fichiers avec main thread 2022-01-26 10:52:06 +01:00
hugogogo
03633fa5b2 resolution erreur oublis unlock si dead + arret simulation si nombre death precise 2022-01-26 08:19:12 +01:00
Hugo LAMY
475817540c erreur lors des arrets 2022-01-25 22:05:39 +01:00
Hugo LAMY
d8475537e0 nimp dans timestamp 2022-01-25 18:48:49 +01:00
hugogogo
b998de9340 ajout fonction sleep uqi compare action vs death 2022-01-23 18:09:46 +01:00
Hugo LAMY
82fef42d2a put time.c and message.c into generic.c 2022-01-22 19:19:39 +01:00
Hugo LAMY
cb615cb6b3 meilleur organisation code structures et variables 2022-01-22 19:16:23 +01:00
Hugo LAMY
3ba76ccc4e reorganisation structs et timestamp global 2022-01-22 12:41:30 +01:00
Hugo LAMY
6a4aad9503 debut implementation death tout est casse 2022-01-21 18:32:37 +01:00
Hugo LAMY
be439700e9 Merge branch 'hugo' 2022-01-21 16:17:08 +01:00
Hugo LAMY
964950f5bd messages en couleurs 2022-01-21 16:16:05 +01:00
Hugo LAMY
3ee91785f6 routine des philosophers ok et debut usage time 2022-01-21 12:05:52 +01:00
Hugo LAMY
9a59f54641 save from school 2022-01-20 15:45:49 +01:00
hugogogo
ac9d619731 change name mtx_msg for m_print, malloc mutex instead of equal NULL, malloc id with pthread_t instead of int, and change name some functions 2022-01-19 17:47:47 +01:00
hugogogo
f8f509dd59 init mutex broken 2022-01-13 09:56:09 +01:00
hugogogo
bc40b571e9 correction loop chained list 2022-01-13 08:53:27 +01:00
hugogogo
81f0ded5e3 introduction mutex mais erreur 2022-01-10 15:44:30 +01:00
hugogogo
b93e8c5e22 some norm and malloc protection 2022-01-09 12:23:22 +01:00
hugogogo
48118ae3ab resolved unexpected additionnal call to the chained list 2022-01-09 11:10:04 +01:00
hugogogo
4b37e5392e create chained list of struct philo and start thread 2022-01-09 10:10:57 +01:00
hugogogo
1c44397e61 init structs 2022-01-05 09:00:02 +01:00
hugogogo
23f93e706a ajout pdf et debut liste chainee en boucle 2022-01-04 08:49:01 +01:00
hugogogo
02b377a582 tests avec join et mutex 2021-12-29 10:59:07 +01:00
hugogogo
a3821d5b15 tests avec join et mutex 2021-12-29 10:57:04 +01:00
hugogogo
a2eccc8deb completion definitions dans eadme 2021-12-29 10:15:59 +01:00
hugogogo
2294c73e6a chaque philosophe peut imprimer son num 2021-12-12 10:28:34 +01:00
hugogogo
fc987249ac create project with libft and basic thread program 2021-12-11 12:46:06 +01:00