aboutsummaryrefslogtreecommitdiff
path: root/common/common.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-03 16:58:00 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-03 16:58:00 +0100
commit7e971b3fa805c40d02ac3e996ab1d181f9584866 (patch)
treef904b6f96e0080b86aadd4d9047f7dfb855c3a3d /common/common.h
parente874ad94a31a8259b8eb7ad2865767c081bcd279 (diff)
downloadphilosophers-7e971b3fa805c40d02ac3e996ab1d181f9584866.tar.gz
philosophers-7e971b3fa805c40d02ac3e996ab1d181f9584866.tar.bz2
philosophers-7e971b3fa805c40d02ac3e996ab1d181f9584866.zip
Added h_sleep instead of usleep for better precision
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/common.h b/common/common.h
index 617db1a..d224264 100644
--- a/common/common.h
+++ b/common/common.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 22:58:35 by cacharle #+# #+# */
-/* Updated: 2021/01/03 14:02:38 by cacharle ### ########.fr */
+/* Updated: 2021/01/03 16:34:25 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -54,14 +54,14 @@ bool parse_args(t_philo_args *args, int argc, char **argv);
long int h_atou_strict(char *s);
t_time h_time_now(void);
-int h_err(int ret, const char *format, char *str);
+void h_sleep(t_time sleep_time);
/*
** io.c
*/
-void philo_put_set_initial_time(void);
void philo_put(
size_t id, t_philo_event event, t_time initial_time);
+int h_err(int ret, const char *format, char *str);
#endif