![]() |
libfilezilla
|
00001 #ifndef LIBFILEZILLA_THREAD_HEADER 00002 #define LIBFILEZILLA_THREAD_HEADER 00003 00004 #include "libfilezilla.hpp" 00005 00010 namespace fz { 00011 00025 class FZ_PUBLIC_SYMBOL thread 00026 { 00027 public: 00028 thread(); 00029 00035 virtual ~thread(); 00036 00041 bool run(); 00042 00053 void join(); 00054 00059 bool joinable() const; 00060 00061 protected: 00063 virtual void entry() = 0; 00064 00065 private: 00066 class impl; 00067 friend class impl; 00068 impl* impl_{}; 00069 }; 00070 00071 } 00072 00073 #endif