mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
23 lines
290 B
C++
23 lines
290 B
C++
|
#ifndef WEBFUSE_THREAD_HPP
|
||
|
#define WEBFUSE_THREAD_HPP
|
||
|
|
||
|
#include <pthread.h>
|
||
|
#include <functional>
|
||
|
|
||
|
namespace webfuse
|
||
|
{
|
||
|
|
||
|
class thread
|
||
|
{
|
||
|
public:
|
||
|
explicit thread(std::function<void(void)> run);
|
||
|
~thread();
|
||
|
void kill(int signal_id);
|
||
|
private:
|
||
|
pthread_t real_thread;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|