Eliminate copies in deferred cleanup (#3035)

This commit is contained in:
Tim Sylvester
2025-02-07 10:48:16 -08:00
committed by GitHub
parent de8e34a19b
commit 14559245d8
79 changed files with 346 additions and 292 deletions

View File

@@ -290,7 +290,7 @@ void RunLoop::stop() {
});
}
void RunLoop::addWatch(int fd, Event event, std::function<void(int, Event)>&& cb) {
void RunLoop::addWatch(int fd, Event event, std23::move_only_function<void(int, Event)>&& cb) {
MBGL_VERIFY_THREAD(tid);
if (event == Event::Read) {