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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "philo.h"
|
||||
|
||||
void create_threads(t_philo *philo, pthread_t *id, int n)
|
||||
void launch_threads(t_philo *philo, pthread_t *id, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -24,7 +24,7 @@ int main(int ac, char **av)
|
||||
if (philo == NULL)
|
||||
return (0);
|
||||
n = philo->params->n_phi;
|
||||
create_threads(philo, id, n);
|
||||
launch_threads(philo, id, n);
|
||||
i = 0;
|
||||
while (i < n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user