diff options
author | RunitaiLinden <davep@lindenlab.com> | 2024-05-02 10:59:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 10:59:29 -0500 |
commit | e8219cb0509d5aacc75cf862c6b8cad026590958 (patch) | |
tree | bfd85d36db258f46b74aa9989c1615d9bd7faf72 /indra/llcommon/llcoros.cpp | |
parent | a701cce8e0959503156a010683f6d0d57beaae36 (diff) | |
parent | 7fc5f7e649c564fa8479a72a45459d0cc427d0f8 (diff) |
Merge branch 'project/gltf_development' into 1357-gltf-asset-prototype
Diffstat (limited to 'indra/llcommon/llcoros.cpp')
-rw-r--r-- | indra/llcommon/llcoros.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp index c13900f74a..219c65fbb8 100644 --- a/indra/llcommon/llcoros.cpp +++ b/indra/llcommon/llcoros.cpp @@ -61,6 +61,23 @@ #include <excpt.h> #endif +// static +bool LLCoros::on_main_coro() +{ + if (!LLCoros::instanceExists() || LLCoros::getName().empty()) + { + return true; + } + + return false; +} + +// static +bool LLCoros::on_main_thread_main_coro() +{ + return on_main_coro() && on_main_thread(); +} + // static LLCoros::CoroData& LLCoros::get_CoroData(const std::string& caller) { |