1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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

@ -259,7 +259,7 @@ private:
{
ReceiverThread (const String& pName, bool shouldCreatePipe,
WaitableEvent& completed)
: NamedPipeThread ("NamePipeSender", pName, shouldCreatePipe, completed)
: NamedPipeThread ("NamePipeReceiver", pName, shouldCreatePipe, completed)
{}
~ReceiverThread() override

View file

@ -42,7 +42,7 @@ struct FallbackDownloadTask final : public URL::DownloadTask,
size_t bufferSizeToUse,
std::unique_ptr<WebInputStream> streamToUse,
URL::DownloadTask::Listener* listenerToUse)
: Thread ("DownloadTask thread"),
: Thread (SystemStats::getJUCEVersion() + ": DownloadTask thread"),
fileStream (std::move (outputStreamToUse)),
stream (std::move (streamToUse)),
bufferSize (bufferSizeToUse),

View file

@ -310,7 +310,7 @@ void Thread::notify() const
//==============================================================================
struct LambdaThread final : public Thread
{
LambdaThread (std::function<void()>&& f) : Thread ("anonymous"), fn (std::move (f)) {}
LambdaThread (std::function<void()>&& f) : Thread (SystemStats::getJUCEVersion() + ": anonymous"), fn (std::move (f)) {}
void run() override
{
@ -496,7 +496,7 @@ class ThreadLocalValueUnitTest final : public UnitTest,
public:
ThreadLocalValueUnitTest()
: UnitTest ("ThreadLocalValue", UnitTestCategories::threads),
Thread ("ThreadLocalValue Thread")
Thread (SystemStats::getJUCEVersion() + ": ThreadLocalValue Thread")
{}
void runTest() override