sys/posix: pthread_barrier: DEBUG fix
This commit is contained in:
parent
e6a9a760a7
commit
702ec4a517
@ -56,7 +56,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
|||||||
|
|
||||||
mutex_lock(&barrier->mutex);
|
mutex_lock(&barrier->mutex);
|
||||||
DEBUG("%s: hit a synchronization barrier. pid=%" PRIkernel_pid"\n",
|
DEBUG("%s: hit a synchronization barrier. pid=%" PRIkernel_pid"\n",
|
||||||
sched_active_thread->name, sched_active_pid);
|
thread_getname(sched_active_pid), sched_active_pid);
|
||||||
|
|
||||||
int switch_prio = -1;
|
int switch_prio = -1;
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
|||||||
/* need to wait for further threads */
|
/* need to wait for further threads */
|
||||||
|
|
||||||
DEBUG("%s: waiting for %u threads. pid=%" PRIkernel_pid "\n",
|
DEBUG("%s: waiting for %u threads. pid=%" PRIkernel_pid "\n",
|
||||||
sched_active_thread->name, barrier->count, sched_active_pid);
|
thread_getname(sched_active_pid), barrier->count, sched_active_pid);
|
||||||
|
|
||||||
pthread_barrier_waiting_node_t node;
|
pthread_barrier_waiting_node_t node;
|
||||||
node.pid = sched_active_pid;
|
node.pid = sched_active_pid;
|
||||||
@ -90,7 +90,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
|||||||
/* all threads have arrived, wake everybody up */
|
/* all threads have arrived, wake everybody up */
|
||||||
|
|
||||||
DEBUG("%s: waking every other thread up. pid=%" PRIkernel_pid "\n",
|
DEBUG("%s: waking every other thread up. pid=%" PRIkernel_pid "\n",
|
||||||
sched_active_thread->name, sched_active_pid);
|
thread_getname(sched_active_pid), sched_active_pid);
|
||||||
|
|
||||||
int count = 1; /* Count number of woken up threads.
|
int count = 1; /* Count number of woken up threads.
|
||||||
* The first thread is the current thread. */
|
* The first thread is the current thread. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user