1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/test-src/webfuse/test/thread.hpp
2022-12-30 19:43:45 +01:00

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