mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Thread: Introduce a new Thread backend
This is a breaking change - see BREAKING-CHANGES.txt
This commit is contained in:
parent
621e14d092
commit
d3cff375be
39 changed files with 849 additions and 603 deletions
|
|
@ -51,7 +51,7 @@ struct ChildProcessPingThread : public Thread,
|
|||
pingReceived();
|
||||
}
|
||||
|
||||
void startPinging() { startThread (4); }
|
||||
void startPinging() { startThread (Priority::low); }
|
||||
|
||||
void pingReceived() noexcept { countdown = timeoutMs / 1000 + 1; }
|
||||
void triggerConnectionLostMessage() { triggerAsyncUpdate(); }
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ NetworkServiceDiscovery::Advertiser::Advertiser (const String& serviceTypeUID,
|
|||
message.setAttribute ("address", String());
|
||||
message.setAttribute ("port", connectionPort);
|
||||
|
||||
startThread (2);
|
||||
startThread (Priority::background);
|
||||
}
|
||||
|
||||
NetworkServiceDiscovery::Advertiser::~Advertiser()
|
||||
|
|
@ -92,7 +92,7 @@ NetworkServiceDiscovery::AvailableServiceList::AvailableServiceList (const Strin
|
|||
#endif
|
||||
|
||||
socket.bindToPort (broadcastPort);
|
||||
startThread (2);
|
||||
startThread (Priority::background);
|
||||
}
|
||||
|
||||
NetworkServiceDiscovery::AvailableServiceList::~AvailableServiceList()
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ private:
|
|||
|
||||
void handleAsyncUpdate() override
|
||||
{
|
||||
startThread (7);
|
||||
startThread (Priority::high);
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TimerThread)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue