summaryrefslogtreecommitdiff
path: root/indra/test/sync.h
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-10-22 13:17:07 -0400
committerGitHub <noreply@github.com>2024-10-22 13:17:07 -0400
commit394f7b37f2ec05c7cfb32c350432886f1c493c85 (patch)
tree35cee467cdf358379f9f8dcd0cc0a62a3b4b7c79 /indra/test/sync.h
parentede5af1b18b47acea039e91c48dceb136dfbb337 (diff)
parent77f9ab96779c55a20a5ccd8b9e906227b3e8e5c8 (diff)
Merge pull request #2911 from secondlife/nat/warn-timeslice
Make `llcoro::scheduler` log coros that run too long between yields.
Diffstat (limited to 'indra/test/sync.h')
-rw-r--r--indra/test/sync.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/test/sync.h b/indra/test/sync.h
index 82eef1e5f5..abeb4e17a8 100644
--- a/indra/test/sync.h
+++ b/indra/test/sync.h
@@ -69,7 +69,7 @@ public:
// misleading, as it will be emitted after waiting threads have
// already awakened. But emitting the log message within the lock
// would seem to hold the lock longer than we really ought.
- LL_DEBUGS() << llcoro::logname() << " bump(" << n << ") -> " << updated << LL_ENDL;
+ LL_DEBUGS() << LLCoros::getName() << " bump(" << n << ") -> " << updated << LL_ENDL;
}
/**
@@ -82,7 +82,7 @@ public:
*/
void set(int n)
{
- LL_DEBUGS() << llcoro::logname() << " set(" << n << ")" << LL_ENDL;
+ LL_DEBUGS() << LLCoros::getName() << " set(" << n << ")" << LL_ENDL;
mCond.set_all(n);
}
@@ -101,7 +101,7 @@ public:
private:
void yield_until(const char* func, int arg, int until)
{
- std::string name(llcoro::logname());
+ std::string name(LLCoros::getName());
LL_DEBUGS() << name << " yield_until(" << until << ") suspending" << LL_ENDL;
if (! mCond.wait_for_equal(mTimeout, until))
{