diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-08-28 07:09:27 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-08-28 07:09:27 +0000 |
commit | c4a566770ec2b78f8fcad31dd85f51befdb1a3b0 (patch) | |
tree | d58158f7e1442cf0a44f9f8f78f1b377c7940d28 /sys | |
parent | 269fa0b3d58f085bd165e84872c3ef1ee116e505 (diff) | |
download | FreeBSD-src-c4a566770ec2b78f8fcad31dd85f51befdb1a3b0.zip FreeBSD-src-c4a566770ec2b78f8fcad31dd85f51befdb1a3b0.tar.gz |
Update comments about interrupted mutex locking.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_umtx.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index a7de18f..0087597 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -642,9 +642,7 @@ do_lock(struct thread *td, struct umtx *umtx, uintptr_t id, TIMESPEC_TO_TIMEVAL(&tv, &ts3); } } - /* - * This lets userland back off critical region if needed. - */ + /* Mutex locking is be restarted if it is interrupted. */ if (error == EINTR) error = ERESTART; return (error); @@ -771,6 +769,7 @@ do_wait(struct thread *td, struct umtx *umtx, uintptr_t id, struct timespec *tim umtxq_unlock(&uq->uq_key); } umtx_key_release(&uq->uq_key); + /* Mutex locking is be restarted if it is interrupted. */ if (error == ERESTART) error = EINTR; return (error); @@ -931,9 +930,7 @@ do_lock_normal(struct thread *td, struct umutex *m, uint32_t flags, TIMESPEC_TO_TIMEVAL(&tv, &ts3); } } - /* - * This lets userland back off critical region if needed. - */ + /* Mutex locking is be restarted if it is interrupted. */ if (error == EINTR) error = ERESTART; return (error); @@ -1560,9 +1557,7 @@ do_lock_pi(struct thread *td, struct umutex *m, uint32_t flags, TIMESPEC_TO_TIMEVAL(&tv, &ts3); } } - /* - * This lets userland back off critical region if needed. - */ + /* Mutex locking is be restarted if it is interrupted. */ if (error == EINTR) error = ERESTART; return (error); @@ -1817,9 +1812,7 @@ do_lock_pp(struct thread *td, struct umutex *m, uint32_t flags, TIMESPEC_TO_TIMEVAL(&tv, &ts3); } } - /* - * This lets userland back off critical region if needed. - */ + /* Mutex locking is be restarted if it is interrupted. */ if (error == EINTR) error = ERESTART; return (error); |