/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2019, Google Inc. * * bound_method.cpp - Method bind and invocation */ #include #include "message.h" #include "thread.h" #include "utils.h" namespace libcamera { void BoundMethodBase::activatePack(void *pack) { if (Thread::current() == object_->thread()) { invokePack(pack); } else { std::unique_ptr msg = utils::make_unique(this, pack); object_->postMessage(std::move(msg)); } } } /* namespace libcamera */