mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Versioning: Add the JUCE version number to any internally created threads
This commit is contained in:
parent
0e608f77fa
commit
6c2d149ef3
25 changed files with 27 additions and 27 deletions
|
|
@ -58,7 +58,7 @@ static String getCommandLinePrefix (const String& commandLineUniqueID)
|
|||
struct ChildProcessPingThread : public Thread,
|
||||
private AsyncUpdater
|
||||
{
|
||||
ChildProcessPingThread (int timeout) : Thread ("IPC ping"), timeoutMs (timeout)
|
||||
ChildProcessPingThread (int timeout) : Thread (SystemStats::getJUCEVersion() + ": IPC ping"), timeoutMs (timeout)
|
||||
{
|
||||
pingReceived();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace juce
|
|||
|
||||
struct InterprocessConnection::ConnectionThread final : public Thread
|
||||
{
|
||||
ConnectionThread (InterprocessConnection& c) : Thread ("JUCE IPC"), owner (c) {}
|
||||
ConnectionThread (InterprocessConnection& c) : Thread (SystemStats::getJUCEVersion() + ": IPC"), owner (c) {}
|
||||
void run() override { owner.runThread(); }
|
||||
|
||||
InterprocessConnection& owner;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
InterprocessConnectionServer::InterprocessConnectionServer() : Thread ("JUCE IPC server")
|
||||
InterprocessConnectionServer::InterprocessConnectionServer() : Thread (SystemStats::getJUCEVersion() + ": IPC server")
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ NetworkServiceDiscovery::Advertiser::Advertiser (const String& serviceTypeUID,
|
|||
const String& serviceDescription,
|
||||
int broadcastPortToUse, int connectionPort,
|
||||
RelativeTime minTimeBetweenBroadcasts)
|
||||
: Thread ("Discovery_broadcast"),
|
||||
: Thread (SystemStats::getJUCEVersion() + ": Discovery_broadcast"),
|
||||
message (serviceTypeUID), broadcastPort (broadcastPortToUse),
|
||||
minInterval (minTimeBetweenBroadcasts)
|
||||
{
|
||||
|
|
@ -97,7 +97,7 @@ void NetworkServiceDiscovery::Advertiser::sendBroadcast()
|
|||
|
||||
//==============================================================================
|
||||
NetworkServiceDiscovery::AvailableServiceList::AvailableServiceList (const String& serviceType, int broadcastPort)
|
||||
: Thread ("Discovery_listen"), serviceTypeUID (serviceType)
|
||||
: Thread (SystemStats::getJUCEVersion() + ": Discovery_listen"), serviceTypeUID (serviceType)
|
||||
{
|
||||
#if JUCE_ANDROID
|
||||
acquireMulticastLock();
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ MessageManager::MessageManager() noexcept
|
|||
JUCE_VERSION_ID
|
||||
|
||||
if (JUCEApplicationBase::isStandaloneApp())
|
||||
Thread::setCurrentThreadName ("JUCE Message Thread");
|
||||
Thread::setCurrentThreadName (SystemStats::getJUCEVersion() + ": Message Thread");
|
||||
}
|
||||
|
||||
MessageManager::~MessageManager() noexcept
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
using LockType = CriticalSection;
|
||||
|
||||
TimerThread()
|
||||
: Thread ("JUCE Timer")
|
||||
: Thread (SystemStats::getJUCEVersion() + ": Timer")
|
||||
{
|
||||
timers.reserve (32);
|
||||
ShutdownDetector::addListener (this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue