1
0
Fork 0
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:
Anthony Nicholls 2024-09-13 17:23:57 +01:00
parent 0e608f77fa
commit 6c2d149ef3
25 changed files with 27 additions and 27 deletions

View file

@ -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();
}

View file

@ -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;

View file

@ -35,7 +35,7 @@
namespace juce
{
InterprocessConnectionServer::InterprocessConnectionServer() : Thread ("JUCE IPC server")
InterprocessConnectionServer::InterprocessConnectionServer() : Thread (SystemStats::getJUCEVersion() + ": IPC server")
{
}

View file

@ -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();

View file

@ -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

View file

@ -89,7 +89,7 @@ public:
using LockType = CriticalSection;
TimerThread()
: Thread ("JUCE Timer")
: Thread (SystemStats::getJUCEVersion() + ": Timer")
{
timers.reserve (32);
ShutdownDetector::addListener (this);