From ec9c996cd0f0ed47f5fac69986e429a252c445b5 Mon Sep 17 00:00:00 2001 From: Patrick Cook Date: Wed, 15 Jan 2025 11:19:30 -0800 Subject: [PATCH] Add mutex lock guard around queue release --- ggdeploymentd/src/deployment_queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggdeploymentd/src/deployment_queue.c b/ggdeploymentd/src/deployment_queue.c index 4a133913c..2b0ac88de 100644 --- a/ggdeploymentd/src/deployment_queue.c +++ b/ggdeploymentd/src/deployment_queue.c @@ -471,6 +471,8 @@ GglError ggl_deployment_dequeue(GglDeployment **deployment) { } void ggl_deployment_release(GglDeployment *deployment) { + GGL_MTX_SCOPE_GUARD(&queue_mtx); + assert(ggl_buffer_eq( deployment->deployment_id, deployments[queue_index].deployment_id ));