Skip to content

Commit

Permalink
Add mutex lock guard around queue release
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpate committed Jan 15, 2025
1 parent 8e4c381 commit ec9c996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggdeploymentd/src/deployment_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
Expand Down

0 comments on commit ec9c996

Please sign in to comment.