X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Ffreenet%2Ffreenetmasterthread.h;h=76d610280cd27fc0d74a4258b9ce699794c13024;hb=278ee758050cb7772cd95946688c5b40104f4d8b;hp=e1f2453792770c1b5132bf1ca6e379707feaf39b;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/include/freenet/freenetmasterthread.h b/include/freenet/freenetmasterthread.h index e1f2453..76d6102 100644 --- a/include/freenet/freenetmasterthread.h +++ b/include/freenet/freenetmasterthread.h @@ -7,13 +7,12 @@ #include "ifcpconnected.h" #include "iperiodicprocessor.h" -//#include -#include "../pthreadwrapper/runnable.h" +#include "../threadwrapper/cancelablerunnable.h" // forward declaration class IFreenetRegistrable; -class FreenetMasterThread:public PThread::Runnable,public ILogger, public IFCPMessageHandler +class FreenetMasterThread:public CancelableRunnable,public ILogger, public IFCPMessageHandler { public: FreenetMasterThread(); @@ -21,7 +20,7 @@ public: const bool HandleMessage(FCPMessage &message); - void Run(); + void run(); // registration methods for children objects void RegisterPeriodicProcessor(IPeriodicProcessor *obj); @@ -34,7 +33,7 @@ private: void Shutdown(); std::string m_fcphost; - long m_fcpport; + int m_fcpport; FCPv2 m_fcp; std::vector m_registrables; std::vector m_processors;