Hi, On Nov,Tuesday 4 2008, at 8:37 AM, Matt Thomas wrote:
I'd like to be able to do a mutex_enter(9) which could be interruptable.If interrupted, it would return the error why it was interrupted.Maybe called int mutex_wait(kmutex_t *mtx, int ticks); and if ticks == 0becomes (mutex_tryenter(mtx) ? 0 : ETIMEOUT). If tick == -1, means wait forever.
I would like to ask what is difference between mutex_wait and cv_timedwait.
mutex_wait would use PCATCH for its sleeps and return EINTR if a signalwas caught.
Regards Adam.