/* * ===================================================================================== * * 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; }