MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
Thread.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#include "Timing.hpp"
7
8namespace mxl::lib
9{
10 namespace this_thread
11 {
15 void yield() noexcept;
16
21 void yieldProcessor() noexcept;
22
35 Duration sleep(Duration duration, Clock clock = Clock::Realtime) noexcept;
36
46 int sleepUntil(Timepoint timepoint, Clock clock = Clock::Realtime) noexcept;
47 }
48}
int sleepUntil(Timepoint timepoint, Clock clock=Clock::Realtime) noexcept
Definition Thread.cpp:56
void yield() noexcept
Definition Thread.cpp:14
Duration sleep(Duration duration, Clock clock=Clock::Realtime) noexcept
Definition Thread.cpp:33
void yieldProcessor() noexcept
Definition Thread.cpp:19