HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
thread.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Foundation/required.hpp"
7#include <thread>
8#include <string_view>
9#include <functional>
10
11namespace tt {
12
13void set_thread_name(std::string_view name);
14
15bool is_main_thread();
16
17void run_on_main_thread(std::function<void()> f);
18
19
20}
21