diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2019-12-09 11:37:36 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2020-03-25 15:28:17 -0400 |
commit | 960593fd5eedcc63632fe4e0e3b71ac4afc91d11 (patch) | |
tree | 163b9529522195e9a87cbb699639a6fec221f369 /indra/llcommon/llmainthreadtask.cpp | |
parent | 69fbe647abe3942ced02f14f0adc477630d9dd7e (diff) |
DRTVWR-494: Add LLMainThreadTask to perform work on the main thread.
If already running on the main thread, LLMaintThreadTask simply runs the work
inline. Otherwise it queues it for the main thread using LLEventTimer, using
std::future to retrieve the result.
Diffstat (limited to 'indra/llcommon/llmainthreadtask.cpp')
-rw-r--r-- | indra/llcommon/llmainthreadtask.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indra/llcommon/llmainthreadtask.cpp b/indra/llcommon/llmainthreadtask.cpp new file mode 100644 index 0000000000..e0d70cacd8 --- /dev/null +++ b/indra/llcommon/llmainthreadtask.cpp @@ -0,0 +1,22 @@ +/** + * @file llmainthreadtask.cpp + * @author Nat Goodspeed + * @date 2019-12-05 + * @brief Implementation for llmainthreadtask. + * + * $LicenseInfo:firstyear=2019&license=viewerlgpl$ + * Copyright (c) 2019, Linden Research, Inc. + * $/LicenseInfo$ + */ + +// Precompiled header +#include "linden_common.h" +// associated header +#include "llmainthreadtask.h" +// STL headers +// std headers +// external library headers +// other Linden headers + +// This file is required by our CMake integration-test machinery. It +// contributes no code to the viewer executable. |