Skip to content
Snippets Groups Projects
Commit 702ec4a5 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

sys/posix: pthread_barrier: DEBUG fix

parent e6a9a760
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
mutex_lock(&barrier->mutex);
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;
......@@ -64,7 +64,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
/* need to wait for further threads */
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;
node.pid = sched_active_pid;
......@@ -90,7 +90,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
/* all threads have arrived, wake everybody up */
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.
* The first thread is the current thread. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment