Re: [AD] review timed-wait changes |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi,
What happened with the patch for 'al_wait_for_event' and
'al_wait_for_event_timed'
to remove the ALLEGRO_WAIT_FOREVER constant and use 'float' instead of 'long'
in milliseconds?
I had local changes from a Peter Wang's patch. Will it be included?
Or is it still a work in progress?
On Tue, Apr 8, 2008 at 10:37 AM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-04-08, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > Implementing on Windows might be trouble. The code above,
> >
> > rel_msecs = timeout->abstime - now;
> >
> > is incorrect if 'timeout->abstime' isn't guaranteed to be at least as
> > late as 'now'.
>
> Nevermind. Externally, al_wait_for_event_until() would be based on
> al_current_time() which accounts for wraparound. Internally it could use
> _al_cond_timeout_init() and _al_cond_timedwait() without problem.
>
>
>
> Peter
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>