Parent: 7f36611d10e9f7ce0d4d6782ef1537a5748f55fa
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-10-19 23:09:34
Tree: a68eb316b06de4b3a3751eb0fc6ac5bccfa7e315
shared/timeout-ell: Fix timeout wrapper implementation This fixes the following issues: - Correct user data is passed around to l_timeout_create(): locally allocated timeout data is a valid "user data" to associate with a newly created timeout. Previously, user_data passed as an argument to timeout_add() was incorrectly used as an argument to l_timeout_create() - To maintain common API and work around the issue when the conversion of a pointer to an unsigned int truncates the initial value, a queue of active timeouts is maintained where pointer each l_timeout structure is associate with a unique id. This id is returned when timeout_create() API is called and can be subsequently used with timeout_remove().
Diffstat
| M | src/shared/timeout-ell.c | | | 50 | ++++++++++++++++++++++++++++++++++++++++- - - - - |
1 files changed, 45 insertions(+), 5 deletions(-)