You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to core-librari...@haskell.org, libr...@haskell.org
Hi all,
I'd like to propose we modify GHC.Event.updateTimeout and GHC.Event.unregisterTimeout to each return a Bool, indicating whether the update/unregister was successful.
Thanks,
Mitchell
George Wilson
unread,
May 31, 2020, 1:38:37 AM5/31/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mitchell Rosen, core-librari...@haskell.org, Haskell Libraries
Admittedly I'm not familiar with that module, but this change seems
easy to make.
It seems as though these functions don't exactly "fail"; rather they
don't bother updating the queue if the change would be redundant. Is
that correct? Could you explain why you want to detect this?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mitchel...@gmail.com, libr...@haskell.org, core-librari...@haskell.org
Hello,
If I remember correctly, the current algorithm of TimerManager was
proposed by me. That is, TimerManager is waken up only when the
internal PSQ is changed. (See abda03be6794ffd9bbc2c4f77d7f9d534a202b21)
I would like to understand what failure (or success) means. Does it
include BOTH TimerManager is not waken up AND poll() system call
returns -1?
I guess that this change is a little bit harder than people expect.