diff --git a/src/core/ddsi/src/ddsi_gc.c b/src/core/ddsi/src/ddsi_gc.c index b8822f2ebf..81f53a8a0b 100644 --- a/src/core/ddsi/src/ddsi_gc.c +++ b/src/core/ddsi/src/ddsi_gc.c @@ -112,7 +112,8 @@ bool ddsi_gcreq_queue_step (struct ddsi_gcreq_queue *q) { /* Give up immediately instead of waiting: this exists to make less-threaded (test/fuzzing) code possible. (I don't think this case can occur in a single - threaded process, but it might if a some threads exist.) */ + threaded process, but it might if some threads exist.) */ + ddsrt_mutex_lock (&q->lock); break; } else