clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / futex.cpp
index 1b9f7fc9288cae694e21cad369ffc87dc7ea174e..b0e01fc73d4d8d4a6cbec6e669958fe80fa94b5e 100644 (file)
@@ -42,7 +42,7 @@ void futex_wait_update(int32_t *futex, int active)
 {
        if (active) {
                uatomic_set(futex, 1);
-               if (futex_async(futex, FUTEX_WAKE, INT_MAX, NULL, NULL, 0) < 0) {
+               if (futex_async(futex, FUTEX_WAKE, INT_MAX, nullptr, nullptr, 0) < 0) {
                        PERROR("futex_async");
                        abort();
                }
@@ -72,7 +72,7 @@ void futex_nto1_wait(int32_t *futex)
        cmm_smp_mb();
 
        while (uatomic_read(futex) == -1) {
-               if (!futex_async(futex, FUTEX_WAIT, -1, NULL, NULL, 0)) {
+               if (!futex_async(futex, FUTEX_WAIT, -1, nullptr, nullptr, 0)) {
                        /*
                         * Prior queued wakeups queued by unrelated code
                         * using the same address can cause futex wait to
@@ -108,7 +108,7 @@ void futex_nto1_wake(int32_t *futex)
        if (caa_unlikely(uatomic_read(futex) != -1))
                goto end;
        uatomic_set(futex, 0);
-       if (futex_async(futex, FUTEX_WAKE, 1, NULL, NULL, 0) < 0) {
+       if (futex_async(futex, FUTEX_WAKE, 1, nullptr, nullptr, 0) < 0) {
                PERROR("futex_async");
                abort();
        }
This page took 0.023709 seconds and 4 git commands to generate.