Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <stdio.h>
#include <string.h>
#include <memory>
#include <atomic>
#ifndef _WIN32
#include <libgen.h>
#include <dirent.h>
Expand Down Expand Up @@ -42,7 +43,7 @@ typedef struct {
int start_offset;
int duration;
int tag;
int done;
atomic<bool> done;
codegen_response_t *response;
} thread_parm_t;

Expand Down Expand Up @@ -285,7 +286,7 @@ int main(int argc, char** argv) {
parm[i]->start_offset = start_offset;
parm[i]->tag = still_left;
parm[i]->duration = duration;
parm[i]->done = 0;
parm[i]->done = false;
still_left--;
pthread_attr_init(&attr[i]);
pthread_attr_setdetachstate(&attr[i], PTHREAD_CREATE_DETACHED);
Expand Down