Iros
 
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1#pragma once
2
6#include "di/types/integers.h"
7#include "di/util/std_new.h"
8#include "iris/core/error.h"
10
11namespace di::sync {
12class DumbSpinlock;
13}
14
15namespace di::platform {
16using ThreadId = types::i32;
17
18extern auto get_current_thread_id() -> ThreadId;
19
20using DefaultLock = iris::Spinlock;
21
22using DefaultAllocator = container::FallibleAllocator;
23using DefaultFallibleAllocator = container::FallibleAllocator;
24}
Definition dumb_spinlock.h:13
Definition custom.h:30
container::FallibleAllocator DefaultFallibleAllocator
Definition custom.h:40
std::mutex DefaultLock
Definition custom.h:37
container::InfallibleAllocator DefaultAllocator
Definition custom.h:39
auto get_current_thread_id() -> ThreadId
Definition custom.h:33
std::thread::id ThreadId
Definition custom.h:31
Definition atomic.h:12
__INT32_TYPE__ i32
Definition integers.h:16