mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
libcamera: bound_method: Decouple from Signal implementation
To make the BoundMethod classes more generic, replace direct access to private member from Signal classes with accessors or helper functions. This allows removal of friend statements from the BoundMethod classes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
0e65ed8145
commit
f83820a5d1
3 changed files with 12 additions and 17 deletions
|
@ -13,12 +13,6 @@
|
|||
|
||||
namespace libcamera {
|
||||
|
||||
void BoundMethodBase::disconnect(SignalBase *signal)
|
||||
{
|
||||
if (object_)
|
||||
object_->disconnect(signal);
|
||||
}
|
||||
|
||||
void BoundMethodBase::activatePack(void *pack)
|
||||
{
|
||||
if (Thread::current() == object_->thread()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue