Explorar el Código

fix pshared barrier wrong return value.

i set the return value but then never used it... oops!
Rich Felker hace 13 años
padre
commit
d8dc1df1c2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/thread/pthread_barrier_wait.c

+ 1 - 1
src/thread/pthread_barrier_wait.c

@@ -54,7 +54,7 @@ static int pshared_barrier_wait(pthread_barrier_t *b)
 	
 	__vm_unlock();
 
-	return 0;
+	return ret;
 }
 
 struct instance