Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
702ec4a5
Commit
702ec4a5
authored
7 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
sys/posix: pthread_barrier: DEBUG fix
parent
e6a9a760
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/posix/pthread/pthread_barrier.c
+3
-3
3 additions, 3 deletions
sys/posix/pthread/pthread_barrier.c
with
3 additions
and
3 deletions
sys/posix/pthread/pthread_barrier.c
+
3
−
3
View file @
702ec4a5
...
...
@@ -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. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment