From: Szabolcs Nagy <nsz@port70.net>
To: zuotina <zuotingyang@126.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] [timer] timer_delete function async problem
Date: Sat, 15 Feb 2020 13:46:17 +0100 [thread overview]
Message-ID: <20200215124617.GB14278@port70.net> (raw)
In-Reply-To: <19e6adf5.abdf.170487c3154.Coremail.zuotingyang@126.com>
* zuotina <zuotingyang@126.com> [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.
next prev parent reply other threads:[~2020-02-15 12:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-15 10:54 zuotina
2020-02-15 12:46 ` Szabolcs Nagy [this message]
2020-02-15 17:27 ` Rich Felker
2020-02-17 7:12 ` [musl] " zuotina
2020-02-17 15:15 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200215124617.GB14278@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
--cc=zuotingyang@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).