changed the circular nature of dongle grabbing to even/odd based to eliminate chained dependency
This commit is contained in:
parent
6a3b577d79
commit
a29a321d75
4 changed files with 5 additions and 5 deletions
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
static void stop_prog(t_state *state, int i)
|
||||
{
|
||||
print("%ld %d burned out\n", state, state->coders[i].idx);
|
||||
pthread_mutex_lock(&state->over_mutex);
|
||||
state->is_over = true;
|
||||
pthread_mutex_unlock(&state->over_mutex);
|
||||
print("%ld %d has burned out\n", state, state->coders[i].idx);
|
||||
}
|
||||
|
||||
bool is_over(t_state *state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue