tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: would a mutex_wait be useful?



Matt Thomas wrote:

On Nov 4, 2008, at 1:34 AM, Adam Hamsik wrote:
I would like to ask what is difference between mutex_wait and cv_timedwait.

before you can do cv_timedwait, you must have locked the mutex. What happens
if that mutex is locked for a long period and you want to abort the wait?

How could it happen? Such mutexes are generally used to protect the shared data access "monitored" through condvar routines, so it should not be acquired for a long time?

--
Jean-Yves Migeon
jean-yves.migeon%espci.fr@localhost



Home | Main Index | Thread Index | Old Index