diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-14 01:42:10 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-14 01:42:10 +0100 |
| commit | adbe9cdb61e5d12299b8872b2ac27a48036bc95d (patch) | |
| tree | e8c5028c2f813ae4ee37b741f9b0a0d83af9e6f3 /common/philo.c | |
| parent | 1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642 (diff) | |
| download | philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.gz philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.bz2 philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.zip | |
WIP: philo_one running a bit
Diffstat (limited to 'common/philo.c')
| -rw-r--r-- | common/philo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/philo.c b/common/philo.c index 484257e..dfc9278 100644 --- a/common/philo.c +++ b/common/philo.c @@ -6,19 +6,19 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/09 01:54:53 by cacharle #+# #+# */ -/* Updated: 2020/02/09 23:56:26 by cacharle ### ########.fr */ +/* Updated: 2020/02/14 00:29:17 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "common.h" -void philo_eat(int id, int timeout) +void philo_eat(int id, t_time timeout) { philo_put_state_change(id, EVENT_EATING); usleep(timeout * 1000); } -void philo_sleep(int id, int timeout) +void philo_sleep(int id, t_time timeout) { philo_put_state_change(id, EVENT_SLEEPING); usleep(timeout * 1000); |
