Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 07935ac

Browse files
committed
update comment
1 parent eb00af9 commit 07935ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

impeller/renderer/backend/vulkan/context_vk.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ ContextVK::~ContextVK() {
111111
[[maybe_unused]] auto result = device_->waitIdle();
112112
}
113113
CommandPoolVK::ClearAllPools(this);
114-
// Shut down the worker message loop before the context starts getting torn
115-
// down.
114+
// Delete `worker_message_loop_` to ensure that ~ConcurrentMessageLoop() is
115+
// executed before the instance variables are deleted. This will synchronize
116+
// on joining ConcurrentMessageLoop's threads.
116117
worker_message_loop_.reset();
117118
}
118119

0 commit comments

Comments
 (0)