Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 514c23ca authored by Aaqib Ismail's avatar Aaqib Ismail
Browse files

Make event callback accessible to child classes

Bug: 291278377
Test: m
Change-Id: Idb667aa847ba566713068a47b12dc849ffcf96cc
parent 7d483bc6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -82,6 +82,10 @@ class GRPCVehicleHardware : public IVehicleHardware {

    bool waitForConnected(std::chrono::milliseconds waitTime);

  protected:
    std::shared_mutex mCallbackMutex;
    std::unique_ptr<const PropertyChangeCallback> mOnPropChange;

  private:
    void ValuePollingLoop();

@@ -90,8 +94,6 @@ class GRPCVehicleHardware : public IVehicleHardware {
    std::unique_ptr<proto::VehicleServer::Stub> mGrpcStub;
    std::thread mValuePollingThread;

    std::shared_mutex mCallbackMutex;
    std::unique_ptr<const PropertyChangeCallback> mOnPropChange;
    std::unique_ptr<const PropertySetErrorCallback> mOnSetErr;

    std::mutex mShutdownMutex;