summaryrefslogtreecommitdiff
path: root/test/actor
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-12-02 10:40:59 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-12-02 14:12:18 +0200
commit7bacf5696ca90dd3f3496988ad0658b357cb7ec1 (patch)
tree55c0988f8ea6a5c2f32c1f9df7d4e3f0bc26481c /test/actor
parente373d8a5924e4f4cf3904ecacbf1d1cf86a5d60f (diff)
downloadqtlocation-mapboxgl-7bacf5696ca90dd3f3496988ad0658b357cb7ec1.tar.gz
[core] Introduce Pass<> class and use it for Scheduler
Thus we enforce client to retain the returned `Scheduler` objects.
Diffstat (limited to 'test/actor')
-rw-r--r--test/actor/actor.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/actor/actor.test.cpp b/test/actor/actor.test.cpp
index c2a41fe787..03eb9b8301 100644
--- a/test/actor/actor.test.cpp
+++ b/test/actor/actor.test.cpp
@@ -156,7 +156,7 @@ TEST(Actor, DestructionAllowedInReceiveOnSameThread) {
};
std::promise<void> callbackFiredPromise;
- auto retainer = Scheduler::GetBackground();
+ std::shared_ptr<Scheduler> retainer = Scheduler::GetBackground();
auto test = std::make_unique<Actor<Test>>(retainer);
// Callback (triggered while mutex is locked in Mailbox::receive())