-
Notifications
You must be signed in to change notification settings - Fork 165
/
os.h
31 lines (25 loc) · 898 Bytes
/
os.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2024.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef OS_2011_10_20_H
#define OS_2011_10_20_H
#include <os/os_cfg.h>
#include <util/utility/util_time.h>
#include <cstdint>
#include <limits>
#if defined(_MSC_VER)
#define OS_NORETURN
#else
#define OS_NORETURN [[noreturn]]
#endif
namespace os
{
OS_NORETURN auto start_os() -> void;
auto set_event (const task_id_type task_id, const event_type& event_to_set) -> bool;
auto get_event (event_type& event_to_get) -> void;
auto clear_event(const event_type& event_to_clear) -> void;
} // namespace os
#endif // OS_2011_10_20_H