MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
Sync.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 <cstdint>
7#include "Timing.hpp"
8
9namespace mxl::lib
10{
19 template<typename T>
20 bool waitUntilChanged(T const* in_addr, T in_expected, Timepoint in_deadline);
21
30 template<typename T>
31 bool waitUntilChanged(T const* in_addr, T in_expected, Duration in_timeout);
32
38 template<typename T>
39 void wakeOne(T const* in_addr);
40
46 template<typename T>
47 void wakeAll(T const* in_addr);
48}
void wakeAll(T const *in_addr)
Definition Sync.cpp:131
void wakeOne(T const *in_addr)
Definition Sync.cpp:122
bool waitUntilChanged(T const *in_addr, T in_expected, Timepoint in_deadline)
Definition Sync.cpp:68