From: "墨 输" <TitenWang2013@hotmail.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] Question about time library
Date: Sat, 19 Nov 2016 02:32:36 +0000 [thread overview]
Message-ID: <HK2PR0301MB126763D37A4250B6C23E2C66B2B30@HK2PR0301MB1267.apcprd03.prod.outlook.com> (raw)
Hi,everyone
First of all, thank you for reading my email.
When I read the code of time library,I meet one point that I don't understand fully.
In the function rte_timer_manage(),if a periodic timer expire, before calling the function __rte_timer_reset(), its state is changed to RTE_TIMER_PENDING, and all layers of skiplist's pending_head is modified to point to unexpired timers' list, that is , the timer to reset is not involved in the skiplist--priv_timer[tim_lcore].pending_head.
But in the function __rte_timer_reset() called by rte_timer_manage(), if the timer's previous state(after calling timer_set_config_state()) is RTE_TIMER_PENDING, it will call timer_del() to remove the timer from the skiplist -- priv_timer[tim_lcore].pending_head, however, the timer is already not in the skiplist now.
That is what I don't understand fully,if anyone knows about it, please tell me.
Thanks.
Titen
reply other threads:[~2016-11-19 2:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=HK2PR0301MB126763D37A4250B6C23E2C66B2B30@HK2PR0301MB1267.apcprd03.prod.outlook.com \
--to=titenwang2013@hotmail.com \
--cc=dev@dpdk.org \
/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.
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).