1 #ifndef LIBFILEZILLA_THREAD_HEADER
2 #define LIBFILEZILLA_THREAD_HEADER
8 #if !defined(FZ_WINDOWS) || !(defined(__MINGW32__) || defined(__MINGW64__))
32 #if defined(FZ_WINDOWS) && (defined(__MINGW32__) || defined(__MINGW64__))
35 typedef std::thread::id id;
48 bool run(std::function<
void()> && f);
Spawns and represents a new thread of execution.
Definition: thread.hpp:30
bool run(std::function< void()> &&f)
Start the thread.
~thread()
Implicitly calls join()
void join()
Join the thread.
bool joinable() const
A thread is joinable after having been started and before it has been joined.
static id own_id()
Returns unique id of the thread calling the function.
Sets some global macros and further includes string.hpp.
The namespace used by libfilezilla.
Definition: apply.hpp:17