poll: Update code comments to reflect latest changes
It is now possible to poll event if there is another thread polling. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
d775ab5c26
commit
8786244ebc
1 changed files with 1 additions and 3 deletions
|
@ -227,9 +227,7 @@ int k_poll(struct k_poll_event *events, int num_events, s32_t timeout)
|
|||
/*
|
||||
* If we're not polling anymore, it means that at least one event
|
||||
* condition is met, either when looping through the events here or
|
||||
* because one of the events registered has had its state changed, or
|
||||
* that one of the objects we wanted to poll on already had a thread
|
||||
* polling on it.
|
||||
* because one of the events registered has had its state changed.
|
||||
*/
|
||||
if (!is_polling()) {
|
||||
clear_event_registrations(events, last_registered, key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue