[RTEMS Project] #2607: timer_getoverrun() implemetation violates POSIX

RTEMS trac trac at rtems.org
Mon Feb 22 14:06:48 UTC 2016

#2607: timer_getoverrun() implemetation violates POSIX
 Reporter:  sebastian.huber  |       Owner:
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.11.1
Component:  General          |     Version:  4.10
 Severity:  normal           |  Resolution:
 Keywords:                   |

Comment (by joel.sherrill):

 I haven't looked into the timer_getoverrun() yet but it was on my list.

 I don't see the problem with _POSIX_Timer_TSR(). Yes it runs in ISR
 context and there is no current thread context. But it sends a signal to a
 specified thread which is OK. If it sent it to pthread_self(), it would be

   if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {

 The evaluation of the impact of that signal should be deferred to the end
 of the ISR as part of the ISR dispatch and post switch processing.

Ticket URL: <http://devel.rtems.org/ticket/2607#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list