Add lock to the philos' state old
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 08:46:28 +0000 (09:46 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 10:04:08 +0000 (11:04 +0100)
commitc13fb467dd5eb7dfaa4649140e3736a49bab340a
tree4faf4d9d52061b0a27ed578d9108f73d0a8de69d
parent1f3e187f6d79603c15ca9037048922e3ad2b9e50
Add lock to the philos' state

This should prevent data races between any philo thread
and the main thread checking their status.
philo/check_death.c
philo/init.c
philo/main.c
philo/philo.h
philo/philos.c