Remove for loop with join
This commit is contained in:
parent
979c68ea29
commit
3b2380d0f7
1
lab01/.gitignore
vendored
1
lab01/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
encrypted
|
||||
decrypted
|
||||
example
|
||||
|
||||
|
||||
@ -176,10 +176,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
pthread_barrier_wait(&barrier);
|
||||
|
||||
for (int i = 0; i < workers_count; i++) {
|
||||
pthread_join(workers[i]->id, NULL);
|
||||
}
|
||||
|
||||
pthread_barrier_destroy(&barrier);
|
||||
munmap(input, cfg.size);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user