Add "empty" handle_philosophers for testing
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 24 May 2024 13:36:00 +0000 (15:36 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 24 May 2024 13:36:00 +0000 (15:36 +0200)
philo_bonus/main.c

index 1605e32edbacaf6670ebbd11c80a5d8e5e953474..ab989f8c933bbe8433f6df7e57bc9ca43375b478 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/03/22 11:19:48 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/05/24 15:21:33 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/05/24 15:32:12 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -53,6 +53,12 @@ void kill_philosophers(unsigned int count, pid_t *philo_pids)
        }
 }
 
+void   handle_philosophers(__attribute__((unused)) t_sems *semaphores)
+{
+       sleep(5);
+       return ;
+}
+
 int    main(int argc, char **argv)
 {
        t_settings      settings;