#pragma once #include #include #include class NodeFileSource; class ThreadObject : public node::ObjectWrap { //////////////////////////////////////////////////////////////////////////////////////////////// // Static Node Methods public: static void Init(v8::Handle target); static NAN_METHOD(New); static v8::Persistent constructorTemplate; //////////////////////////////////////////////////////////////////////////////////////////////// // Instance private: ThreadObject(NodeFileSource *fs); ~ThreadObject(); private: std::thread thread; v8::Persistent self; };