mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
Update Announce.hpp
This commit is contained in:
parent
8288c32d41
commit
1bd1b5545b
@ -40,8 +40,9 @@ using Poco::StreamCopier;
|
|||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Helper utility that can be used to announce the server to a master-list.
|
* Helper utility that can be used to announce the server to a master-list.
|
||||||
*/
|
*/
|
||||||
struct SqAnnouncer : SqChainedInstances< SqAnnouncer >
|
struct SqAnnouncer : public SqChainedInstances< SqAnnouncer >
|
||||||
{
|
{
|
||||||
|
using Base = SqChainedInstances< SqAnnouncer >;
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Announcer status.
|
* Announcer status.
|
||||||
*/
|
*/
|
||||||
@ -114,7 +115,7 @@ struct SqAnnouncer : SqChainedInstances< SqAnnouncer >
|
|||||||
* Explicit constructor.
|
* Explicit constructor.
|
||||||
*/
|
*/
|
||||||
SqAnnouncer(SQInteger interval, StackStrF & uri)
|
SqAnnouncer(SQInteger interval, StackStrF & uri)
|
||||||
: mRun(false), mLog(true)
|
: Base(), mRun(false), mLog(true)
|
||||||
, mCount(0)
|
, mCount(0)
|
||||||
, mSuccess(0)
|
, mSuccess(0)
|
||||||
, mFailures(0)
|
, mFailures(0)
|
||||||
@ -125,8 +126,7 @@ struct SqAnnouncer : SqChainedInstances< SqAnnouncer >
|
|||||||
, mURI(uri.mPtr)
|
, mURI(uri.mPtr)
|
||||||
, mMtx(), mThread()
|
, mMtx(), mThread()
|
||||||
{
|
{
|
||||||
// Remember this instance
|
ChainInstance(); // Remember this instance
|
||||||
ChainInstance();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user