diff options
| author | Bennett Goble <signal@lindenlab.com> | 2021-12-11 10:28:35 -0800 |
|---|---|---|
| committer | Bennett Goble <signal@lindenlab.com> | 2021-12-11 10:29:37 -0800 |
| commit | 0b95b9d008a0878b5d57262e529cef61fb29ea24 (patch) | |
| tree | 6e12a7949c9a69a5e1ad170220b4e9a82a453142 /indra/llcommon/llcoros.cpp | |
| parent | f729cfc33f258781c5fd85a3d8773bf6149d12db (diff) | |
| parent | 9957c28ddc5e5c129af2db662da7d69f1509af65 (diff) | |
Merge branch 'master' into SL-15742
Diffstat (limited to 'indra/llcommon/llcoros.cpp')
| -rw-r--r-- | indra/llcommon/llcoros.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp index 111c50af93..75fc0fec99 100644 --- a/indra/llcommon/llcoros.cpp +++ b/indra/llcommon/llcoros.cpp @@ -135,6 +135,13 @@ LLCoros::LLCoros(): LLCoros::~LLCoros() { +} + +void LLCoros::cleanupSingleton() +{ + // Some of the coroutines (like voice) will depend onto + // origin singletons, so clean coros before deleting those + printActiveCoroutines("at entry to ~LLCoros()"); // Other LLApp status-change listeners do things like close // work queues and inject the Stop exception into pending @@ -150,6 +157,8 @@ LLCoros::~LLCoros() { // don't use llcoro::suspend() because that module depends // on this one + // This will yield current(main) thread and will let active + // corutines run once boost::this_fiber::yield(); } printActiveCoroutines("after pumping"); |
