[MPlayer-dev-eng] threaded cache
Andrej N. Gritsenko
andrej at rep.kiev.ua
Sun Nov 27 17:51:20 CET 2011
Hello!
On Sun, Nov 27, 2011, around 18:41, I've received:
>If you look at the glibc pthread implementation you see it won't.
>If you set the clock from 2100 to 2011 somewhen in-between the point
>where you calculate the timeout and when you call pthread_cond_timedwait
>it will wake up in 2100.
>Yes, you are right it will wake up _somewhen_. However 2100 might be a bit
>late for most of our users.
Ah, I see the point. But that condwait used in cache filler, isn't
it? So I think that main thread which using the cache can always signal
the filler to wake up if it have used up the cache and that may happen
even in case if time flow is ideal - if that is peak of stream usage. Am
I right?
With best wishes.
Andriy.
More information about the MPlayer-dev-eng
mailing list