一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
wait.hpp File Reference

waiting strategies More...

#include <cstdint>
#include <x86intrin.h>
#include "attributes/common.hpp"
#include "attributes/performance_constraints.hpp"
#include "cpuid.hpp"
Include dependency graph for wait.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ein::mwaitx
 waiter using MONITORX/MWAITX for AMD More...
 
struct  ein::umwait
 waiter using UMONITOR/UMWAIT for Intel More...
 
struct  ein::spin
 spin waiter using PAUSE More...
 

Namespaces

namespace  ein
 

Concepts

concept  ein::waiter
 some way to wait for a value to change
 

Functions

template<waiter W>
ein_flatten void ein::wait_until (volatile auto *p, auto f) noexcept ein_blocking
 Wait until a predicate holds about a given memory location.
 
auto ein::with_waiter (auto k) noexcept
 finds an appropriate waiter for the current CPU
 

Detailed Description

waiting strategies

SPDX-FileType: Source
SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0

Definition in file wait.hpp.