location/location_hal_daemon/LocationApiService.cpp
void MaintTimer::timeOutCallback() {
    LOC_LOGd("maint timer fired");

    struct PerformMaintenanceReq : public LocMsg {
        PerformMaintenanceReq(LocationApiService* locationApiService) :
                mLocationApiService(locationApiService){}
        virtual ~PerformMaintenanceReq() {}
        void proc() const {
            mLocationApiService->performMaintenance();
        }
        LocationApiService* mLocationApiService;
    };
    mMsgTask.sendMsg(new (nothrow) PerformMaintenanceReq(mLocationApiService));
}
// Maintenance timer to clean up resources when client exists without sending
// out de-registration message
Maintenance timer to clean up resources when client exists without sending
out de-registration message
Maintenance timer to clean up resources when client exists without sending out de - registration message
void MaintTimer::timeOutCallback() {
    LOC_LOGd("maint timer fired");
    struct PerformMaintenanceReq : public LocMsg {
        PerformMaintenanceReq(LocationApiService* locationApiService) :
                mLocationApiService(locationApiService){}
        virtual ~PerformMaintenanceReq() {}
        void proc() const {
            mLocationApiService->performMaintenance();
        }
        LocationApiService* mLocationApiService;
    };
    mMsgTask.sendMsg(new (nothrow) PerformMaintenanceReq(mLocationApiService));
}
void MaintTimer :: timeOutCallback ( ) { LOC_LOGd ( " " ) ; struct PerformMaintenanceReq : public LocMsg { PerformMaintenanceReq ( LocationApiService * locationApiService ) : mLocationApiService ( locationApiService ) { } virtual ~ PerformMaintenanceReq ( ) { } void proc ( ) const { mLocationApiService -> performMaintenance ( ) ; } LocationApiService * mLocationApiService ; } ; mMsgTask . sendMsg ( new ( nothrow ) PerformMaintenanceReq ( mLocationApiService ) ) ; }
Maintenance timer to clean up resources when client exists without sending
out de-registration message
Maintenance timer to clean up resources when client exists without sending out de - registration message