Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 15 Feb 2020 13:46:17 +0100
From: Szabolcs Nagy <>
To: zuotina <>
Subject: Re: [timer] timer_delete function async problem

* zuotina <> [2020-02-15 18:54:23 +0800]:
> Problem:
> When I created SIGEV_THREAD timer, then start it by timer_settime. like this
> the notify callback in the helper thread 'start' will be run when timer expiration.
> But when I delete the timer, the notify callback will be run all the same.
> This is not what i want. In actual use,  I encountered a problem.

write an example program that shows the problem

> I found that the 'timer_delete' function returns immediately after called.
> The timer may not perform the delete action.
> In addition, the SIGEV_SIGNAL timer can be deleted after called the function. 
> So i think the function has different semantics for different types.
> Is there a way to implement synchronously ?
> Looking forward to your reply.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.