added includes
This commit is contained in:
parent
9efab2c318
commit
40036d5d71
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int create_mutexes(t_rules *rules)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int create_philos(t_rules *rules)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int destroy_mutexes(t_rules *rules)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int free_philos(t_rules *rules)
|
||||
{
|
||||
free(rules->philos);
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int get_time(void)
|
||||
{
|
||||
struct timeval time;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int parse_arguments(int argc,char *argv[], t_rules *rules)
|
||||
{
|
||||
if (argc != 5 && argc != 6)
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#include "philo.h"
|
||||
|
||||
int print_status(t_philo *philo, char *status)
|
||||
{
|
||||
pthread_mutex_lock(philo->rules->print);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user