mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [timer] timer_delete function async problem
@ 2020-02-15 10:54 zuotina
  2020-02-15 12:46 ` Szabolcs Nagy
  2020-02-15 17:27 ` Rich Felker
  0 siblings, 2 replies; 5+ messages in thread
From: zuotina @ 2020-02-15 10:54 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

Hi everrone


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.


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.

[-- Attachment #2: Type: text/html, Size: 1025 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-17 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-15 10:54 [musl] [timer] timer_delete function async problem zuotina
2020-02-15 12:46 ` Szabolcs Nagy
2020-02-15 17:27 ` Rich Felker
2020-02-17  7:12   ` [musl] " zuotina
2020-02-17 15:15     ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).