sensord: add the comments for logic 13/64513/1
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 22 Mar 2016 14:09:30 +0000 (23:09 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Fri, 1 Apr 2016 11:59:19 +0000 (20:59 +0900)
Change-Id: I68bf587381b3a9371512d3d2c74cb5091c496b94
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/server/sensor_event_poller.cpp

index 082d689..b6d46ca 100644 (file)
@@ -117,6 +117,7 @@ bool sensor_event_poller::process_event(int fd, const std::vector<uint32_t> &ids
        physical_sensor *sensor;
        std::pair<fd_sensors_t::iterator, fd_sensors_t::iterator> ret;
 
+       /* find sensors which is based on same device(fd) */
        ret = m_fd_sensors.equal_range(fd);
 
        for (auto it_sensor = ret.first; it_sensor != ret.second; ++it_sensor) {
@@ -127,6 +128,7 @@ bool sensor_event_poller::process_event(int fd, const std::vector<uint32_t> &ids
 
                sensor = it_sensor->second;
 
+               /* check whether the id of this sensor is in id list(parameter) or not */
                auto result = std::find(std::begin(ids), std::end(ids), sensor->get_hal_id());
 
                if (result == std::end(ids))