Skip to content

Commit

Permalink
Update Qt to mbgl::util::SimpleIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Jun 20, 2024
1 parent 3afb348 commit 456f57f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platform/default/src/mbgl/util/run_loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void RunLoop::stop() {
invoke([&] { uv_unref(impl->holderHandle()); });
}

void RunLoop::waitForEmpty([[maybe_unused]] const void* tag) {
void RunLoop::waitForEmpty([[maybe_unused]] const mbgl::util::SimpleIdentity tag) {
while (true) {
std::size_t remaining;
{
Expand Down
2 changes: 1 addition & 1 deletion platform/qt/src/mbgl/run_loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void RunLoop::runOnce() {
}
}

void RunLoop::waitForEmpty([[maybe_unused]] const void* tag) {
void RunLoop::waitForEmpty([[maybe_unused]] const mbgl::util::SimpleIdentity tag) {
while (true) {
std::size_t remaining;
{
Expand Down
2 changes: 1 addition & 1 deletion platform/qt/src/utils/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void Scheduler::processEvents() {
cvEmpty.notify_all();
}

void Scheduler::waitForEmpty([[maybe_unused]] const void* tag) {
void Scheduler::waitForEmpty([[maybe_unused]] const mbgl::util::SimpleIdentity tag) {
MBGL_VERIFY_THREAD(tid);

std::unique_lock<std::mutex> lock(m_taskQueueMutex);
Expand Down
2 changes: 1 addition & 1 deletion platform/qt/src/utils/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Scheduler : public QObject, public mbgl::Scheduler {
// mbgl::Scheduler implementation.
void schedule(std::function<void()>&& function) final;

void waitForEmpty(const void* tag = nullptr) override;
void waitForEmpty(const mbgl::util::SimpleIdentity tag = mbgl::util::SimpleIdentity::Empty) override;

mapbox::base::WeakPtr<mbgl::Scheduler> makeWeakPtr() override { return weakFactory.makeWeakPtr(); }

Expand Down

0 comments on commit 456f57f

Please sign in to comment.