cutelyst 4.9.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
WindowsFork Class Reference
Inheritance diagram for WindowsFork:

Public Member Functions

 WindowsFork (QObject *parent=nullptr)
virtual bool continueMaster (int *exit=nullptr) override
virtual int exec (bool lazy, bool master) override
virtual void killChild () override
virtual void restart () override
virtual void terminateChild () override
Public Member Functions inherited from AbstractFork
 AbstractFork (QObject *parent=nullptr)
void installTouchReload ()
void removeTouchReload ()
void setTouchReload (const QStringList &paths)

Additional Inherited Members

Signals inherited from AbstractFork
void forked (int workerId)
void shutdown ()
Protected Member Functions inherited from AbstractFork
void directoryChanged (const QString &path)
void fileChanged (const QString &path)

Detailed Description

Definition at line 14 of file windowsfork.h.

Constructor & Destructor Documentation

◆ WindowsFork()

WindowsFork::WindowsFork ( QObject * parent = nullptr)
explicit

Definition at line 15 of file windowsfork.cpp.

Member Function Documentation

◆ continueMaster()

bool WindowsFork::continueMaster ( int * exit = nullptr)
overridevirtual

When in MASTER mode this method is called, it should return true if Server::exec() should continue setting up the listening socked or exit with exit code

Implements AbstractFork.

Definition at line 20 of file windowsfork.cpp.

◆ exec()

int WindowsFork::exec ( bool lazy,
bool master )
overridevirtual

Start event loop, it's useful for doing trickery when forking

Implements AbstractFork.

Definition at line 49 of file windowsfork.cpp.

◆ killChild()

void WindowsFork::killChild ( )
overridevirtual

Called when child process should be nicely killed

Implements AbstractFork.

Definition at line 58 of file windowsfork.cpp.

◆ restart()

void WindowsFork::restart ( )
overridevirtual

Called to restart process when any of the watched paths changes

Implements AbstractFork.

Definition at line 72 of file windowsfork.cpp.

◆ terminateChild()

void WindowsFork::terminateChild ( )
overridevirtual

Called when child process should be brutaly killed

Implements AbstractFork.

Definition at line 65 of file windowsfork.cpp.