From e6ae01729aeaffc560c59e7887c5743521677e4d Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Mon, 15 Aug 2022 23:43:52 -0400 Subject: data work --- src/game.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/game.c (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c new file mode 100644 index 0000000..a5d6ca1 --- /dev/null +++ b/src/game.c @@ -0,0 +1,36 @@ +/* + * ===================================================================================== + * + * Filename: game.c + * + * Description: Implementations for the global action request tracker + * + * Version: 1.0 + * Created: 01/31/2022 11:59:12 AM + * Revision: none + * Compiler: gcc + * + * Author: Cara Salter , + * Organization: + * + * ===================================================================================== + */ +#include +#include +#include +#include "game.h" + +static mtx_t queue; + +int game_loop() { + int err = 0; + + // Initialize mutex + err = mtx_init(&queue, mtx_plain); + if (err == thrd_error) { + perror("initializing mutex"); + return -1; + } + + return err; +} -- cgit v1.2.3