Change-Id: I817dc5147e92ca463bc20c7bb54006315e4f217c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
{
unsigned seq = app_list.currentSequenceNumber();
HMI_SEQ_DEBUG(seq, "Timer expired remove Request");
{
unsigned seq = app_list.currentSequenceNumber();
HMI_SEQ_DEBUG(seq, "Timer expired remove Request");
app_list.removeRequest(seq);
app_list.next();
app_list.removeRequest(seq);
app_list.next();
if (app_list.haveRequest())
{
this->process_request();
if (app_list.haveRequest())
{
this->process_request();
void App::set_timer(){
HMI_SEQ_DEBUG(app_list.currentSequenceNumber(), "Timer set activate");
void App::set_timer(){
HMI_SEQ_DEBUG(app_list.currentSequenceNumber(), "Timer set activate");
- if (timer_ev_src != nullptr)
+ if (timer_ev_src == nullptr)
{
// firsttime set into sd_event
int ret = sd_event_add_time(afb_daemon_get_event_loop(), &timer_ev_src,
{
// firsttime set into sd_event
int ret = sd_event_add_time(afb_daemon_get_event_loop(), &timer_ev_src,
- CLOCK_REALTIME, time(NULL) + TIME_OUT, 0, processTimerHandler, this);
+ CLOCK_REALTIME, time(NULL) * (1000000UL) + TIME_OUT, 0, processTimerHandler, this);
if (ret < 0)
{
HMI_ERROR("wm", "Could't set timer");
if (ret < 0)
{
HMI_ERROR("wm", "Could't set timer");
else
{
// update timer limitation after second time
else
{
// update timer limitation after second time
- sd_event_source_set_time(timer_ev_src, time(NULL) + TIME_OUT);
+ sd_event_source_set_time(timer_ev_src, time(NULL) * (1000000UL) + TIME_OUT);
sd_event_source_set_enabled(timer_ev_src, SD_EVENT_ONESHOT);
}
}
sd_event_source_set_enabled(timer_ev_src, SD_EVENT_ONESHOT);
}
}
//this->stop_timer();
this->do_enddraw(current_seq);
//this->stop_timer();
this->do_enddraw(current_seq);
app_list.removeRequest(current_seq);
HMI_SEQ_INFO(current_seq, "Finish request");
app_list.next();
app_list.removeRequest(current_seq);
HMI_SEQ_INFO(current_seq, "Finish request");
app_list.next();