libfilezilla
thread.hpp
Go to the documentation of this file.
1 #ifndef LIBFILEZILLA_THREAD_HEADER
2 #define LIBFILEZILLA_THREAD_HEADER
3 
4 #include "libfilezilla.hpp"
5 
10 namespace fz {
11 
25 class FZ_PUBLIC_SYMBOL thread
26 {
27 public:
28  thread() = default;
29 
35  virtual ~thread();
36 
41  bool run();
42 
53  void join();
54 
59  bool joinable() const;
60 
61 protected:
63  virtual void entry() = 0;
64 
65 private:
66  class impl;
67  friend class impl;
68  impl* impl_{};
69 };
70 
71 }
72 
73 #endif
Spawns and represents a new thread of execution.
Definition: thread.hpp:25
The namespace used by libfilezilla.
Definition: apply.hpp:16
Sets some global macros and further includes string.hpp.