From fa450ea8492f8d029b781bd911ad270d1b15a3ee Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 13 Dec 2019 14:20:19 -0500 Subject: DRTVWR-476: Update LLMainThreadTask tests for simpler API. --- indra/llcommon/tests/llmainthreadtask_test.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'indra') diff --git a/indra/llcommon/tests/llmainthreadtask_test.cpp b/indra/llcommon/tests/llmainthreadtask_test.cpp index e54c7eda18..8178aa629a 100644 --- a/indra/llcommon/tests/llmainthreadtask_test.cpp +++ b/indra/llcommon/tests/llmainthreadtask_test.cpp @@ -75,14 +75,11 @@ namespace tut // exceptions it might throw and deliver them via future std::packaged_task thread_work( [this, &result](){ - // lock static data first - LockStatic lk; // unblock test<2>()'s yield_until(1) mSync.set(1); // dispatch work to main thread -- should block here bool on_main( LLMainThreadTask::dispatch( - lk, // unlock this before blocking! []()->bool{ // have to lock static mutex to set static data LockStatic()->ran = true; -- cgit v1.2.3