Implementing a semaphore in the MPMC queue to wake up consumers

This commit is contained in:
2026-03-09 16:44:43 +01:00
parent a299c4a1e1
commit 7d8b4addb7
3 changed files with 23 additions and 19 deletions

View File

@@ -482,7 +482,7 @@ int main(int argc, char **argv) {
// Step 1: Scan all folders
// -------------------------------
mpmc_init(&g_file_queue, GiB(1));
mpmc_init(&g_file_queue, MiB(1));
DirQueue q;
memset(&q, 0, sizeof(q));