Fix missing thread attributes

This commit is contained in:
Augusto Gunsch 2020-12-29 21:33:23 -03:00
parent 144a33a603
commit 4919968250
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -58,7 +58,7 @@ void actonunits(COMPILEUNIT* units, void*(*fun)(void*)) {
do {
i = 0;
while(curr != NULL && i < _SC_THREAD_THREADS_MAX) {
code = pthread_create(&mythreads[i], NULL, fun, curr);
code = pthread_create(&mythreads[i], &attr, fun, curr);
if(code) {
eprintf("Error while creating thread %i: %s\n", i, strerror(code));