mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:23:09 +02:00
Change method name per coding standards
This commit is contained in:
parent
2d653db064
commit
9d42a6e08f
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ AssignmentClientMonitor::AssignmentClientMonitor(const unsigned int numAssignmen
|
||||||
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
||||||
packetReceiver.registerListener(PacketType::AssignmentClientStatus, this, "handleChildStatusPacket");
|
packetReceiver.registerListener(PacketType::AssignmentClientStatus, this, "handleChildStatusPacket");
|
||||||
|
|
||||||
adjustOsResources(std::max(_numAssignmentClientForks, _maxAssignmentClientForks));
|
adjustOSResources(std::max(_numAssignmentClientForks, _maxAssignmentClientForks));
|
||||||
// use QProcess to fork off a process for each of the child assignment clients
|
// use QProcess to fork off a process for each of the child assignment clients
|
||||||
for (unsigned int i = 0; i < _numAssignmentClientForks; i++) {
|
for (unsigned int i = 0; i < _numAssignmentClientForks; i++) {
|
||||||
spawnChildClient();
|
spawnChildClient();
|
||||||
|
@ -377,7 +377,7 @@ bool AssignmentClientMonitor::handleHTTPRequest(HTTPConnection* connection, cons
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssignmentClientMonitor::adjustOsResources(unsigned int numForks) const
|
void AssignmentClientMonitor::adjustOSResources(unsigned int numForks) const
|
||||||
{
|
{
|
||||||
#ifdef _POSIX_SOURCE
|
#ifdef _POSIX_SOURCE
|
||||||
// QProcess on Unix uses six (I think) descriptors, some temporarily, for each child proc.
|
// QProcess on Unix uses six (I think) descriptors, some temporarily, for each child proc.
|
||||||
|
|
|
@ -55,7 +55,7 @@ public slots:
|
||||||
private:
|
private:
|
||||||
void spawnChildClient();
|
void spawnChildClient();
|
||||||
void simultaneousWaitOnChildren(int waitMsecs);
|
void simultaneousWaitOnChildren(int waitMsecs);
|
||||||
void adjustOsResources(unsigned int numForks) const;
|
void adjustOSResources(unsigned int numForks) const;
|
||||||
|
|
||||||
QTimer _checkSparesTimer; // every few seconds see if it need fewer or more spare children
|
QTimer _checkSparesTimer; // every few seconds see if it need fewer or more spare children
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue