Re: [PATCH] libgst: Fix SIGALRM race and cancel a timer before starting a new one

Holger Hans Peter Freyther <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>
On Fri, Sep 26, 2014 at 04:52:41PM +0200, Paolo Bonzini wrote:

> Thanks, this is okay.  It is racy anyway whether the
> previously-registered timer would happen anyway; canceling the timer
> solves the race in favor of the new timer.

do you know that posix make any guarantee that either the signal of
the previous timer has been delivered or the old timer has been
canceled?

For clock monotinic I did find common_timer_set inide the kernel
and it seems that it tries to prevent such thing?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.