◆ ChildProcessPingThread()
| juce::ChildProcessPingThread::ChildProcessPingThread |
( |
int | timeout | ) |
|
|
inline |
◆ cancelPendingUpdate()
| void juce::AsyncUpdater::cancelPendingUpdate |
( |
| ) |
|
|
noexcept |
This will stop any pending updates from happening.
If called after triggerAsyncUpdate() and before the handleAsyncUpdate() callback happens, this will cancel the handleAsyncUpdate() callback.
Note that this method simply cancels the next callback - if a callback is already in progress on a different thread, this won't block until the callback finishes, so there's no guarantee that the callback isn't still running when the method returns.
◆ handleAsyncUpdate()
| void juce::ChildProcessPingThread::handleAsyncUpdate |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Called back to do whatever your class needs to do.
This method is called by the message thread at the next convenient time after the triggerAsyncUpdate() method has been called.
Implements juce::AsyncUpdater.
◆ pingFailed()
| virtual void juce::ChildProcessPingThread::pingFailed |
( |
| ) |
|
|
pure virtual |
◆ pingReceived()
| void juce::ChildProcessPingThread::pingReceived |
( |
| ) |
|
|
inlinenoexcept |
◆ run()
| void juce::ChildProcessPingThread::run |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Must be implemented to perform the thread's actual code.
Remember that the thread must regularly check the threadShouldExit() method whilst running, and if this returns true it should return from the run() method as soon as possible to avoid being forcibly killed.
- See also
- threadShouldExit, startThread
Implements juce::Thread.
◆ sendPingMessage()
| virtual bool juce::ChildProcessPingThread::sendPingMessage |
( |
const MemoryBlock & | | ) |
|
|
pure virtual |
◆ startPinging()
| void juce::ChildProcessPingThread::startPinging |
( |
| ) |
|
|
inline |
◆ triggerConnectionLostMessage()
| void juce::ChildProcessPingThread::triggerConnectionLostMessage |
( |
| ) |
|
|
inline |
◆ countdown
| Atomic<int> juce::ChildProcessPingThread::countdown |
|
private |
◆ timeoutMs
| int juce::ChildProcessPingThread::timeoutMs |
The documentation for this struct was generated from the following file: