Iros
 
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1#pragma once
2
3#include <pthread.h>
4
6#include "di/util/prelude.h"
8
9namespace dius {
11 auto id() const -> pthread_t { return native_handle; }
13
14 pthread_t native_handle {};
15 di::Function<void()> entry;
16};
17
19}
Definition function.h:365
Expected< T, Error > Result
Definition result.h:8
Definition directory_entry.h:11
Definition immovable.h:4
Definition box.h:17
Definition thread.h:33
PlatformThread()=default
pthread_t native_handle
Definition thread.h:14
di::Function< void()> entry
Definition thread.h:30
auto join() -> di::Result< void >
auto id() const -> pthread_t
Definition thread.h:11