Fix missing thread attributes
This commit is contained in:
parent
144a33a603
commit
4919968250
2
main.c
2
main.c
|
@ -58,7 +58,7 @@ void actonunits(COMPILEUNIT* units, void*(*fun)(void*)) {
|
||||||
do {
|
do {
|
||||||
i = 0;
|
i = 0;
|
||||||
while(curr != NULL && i < _SC_THREAD_THREADS_MAX) {
|
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) {
|
if(code) {
|
||||||
eprintf("Error while creating thread %i: %s\n", i, strerror(code));
|
eprintf("Error while creating thread %i: %s\n", i, strerror(code));
|
||||||
|
|
Loading…
Reference in New Issue