location/location_hal_daemon/LocationApiService.cpp
void LocationApiService::suspendAllTrackingSessions() {
    for (auto client : mClients) {
        // stop session if running
        if (client.second && client.second->mTracking) {
            client.second->stopTracking();
            client.second->mPendingMessages.push(E_LOCAPI_STOP_TRACKING_MSG_ID);
            LOC_LOGi("--> suspended");
        }
    }
}
// no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
void LocationApiService::suspendAllTrackingSessions() {
    for (auto client : mClients) {
        if (client.second && client.second->mTracking) {
            client.second->stopTracking();
            client.second->mPendingMessages.push(E_LOCAPI_STOP_TRACKING_MSG_ID);
            LOC_LOGi("--> suspended");
        }
    }
}
void LocationApiService :: suspendAllTrackingSessions ( ) { for ( auto client : mClients ) { if ( client . second && client . second -> mTracking ) { client . second -> stopTracking ( ) ; client . second -> mPendingMessages . push ( E_LOCAPI_STOP_TRACKING_MSG_ID ) ; LOC_LOGi ( " " ) ; } } }
no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
// stop session if running