projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: run clang-format 14 on the tree
[lttng-tools.git]
/
src
/
common
/
waiter.cpp
diff --git
a/src/common/waiter.cpp
b/src/common/waiter.cpp
index 037feca2260b34d2e99cd553369e3763abb28d33..1cfd3e6f7778f14a630b4e34ff69bf6a6081214f 100644
(file)
--- a/
src/common/waiter.cpp
+++ b/
src/common/waiter.cpp
@@
-58,8
+58,7
@@
void lttng::synchro::waiter::wait()
}
while (uatomic_read(&_state) == WAITER_WAITING) {
}
while (uatomic_read(&_state) == WAITER_WAITING) {
- if (!futex_noasync(
- &_state, FUTEX_WAIT, WAITER_WAITING, nullptr, nullptr, 0)) {
+ if (!futex_noasync(&_state, FUTEX_WAIT, WAITER_WAITING, nullptr, nullptr, 0)) {
/*
* Prior queued wakeups queued by unrelated code
* using the same address can cause futex wait to
/*
* Prior queued wakeups queued by unrelated code
* using the same address can cause futex wait to
@@
-142,7
+141,7
@@
lttng::synchro::wait_queue::wait_queue()
cds_wfs_init(&_stack);
}
cds_wfs_init(&_stack);
}
-void lttng::synchro::wait_queue::add(waiter
&
waiter) noexcept
+void lttng::synchro::wait_queue::add(waiter
&
waiter) noexcept
{
(void) cds_wfs_push(&_stack, &waiter._wait_queue_node);
}
{
(void) cds_wfs_push(&_stack, &waiter._wait_queue_node);
}
@@
-154,7
+153,7
@@
void lttng::synchro::wait_queue::wake_all()
/* Wake all waiters in our stack head. */
cds_wfs_node *iter, *iter_n;
/* Wake all waiters in our stack head. */
cds_wfs_node *iter, *iter_n;
- cds_wfs_for_each_blocking_safe(waiters, iter, iter_n) {
+ cds_wfs_for_each_blocking_safe
(waiters, iter, iter_n) {
auto& waiter = *lttng::utils::container_of(
iter, <tng::synchro::waiter::_wait_queue_node);
auto& waiter = *lttng::utils::container_of(
iter, <tng::synchro::waiter::_wait_queue_node);
This page took
0.024697 seconds
and
4
git commands to generate.