| 954 | } |
| 955 | |
| 956 | struct mtx * |
| 957 | thread_lock_block(struct thread *td) |
| 958 | { |
| 959 | struct mtx *lock; |
| 960 | |
| 961 | lock = td->td_lock; |
| 962 | mtx_assert(lock, MA_OWNED); |
| 963 | td->td_lock = &blocked_lock; |
| 964 | |
| 965 | return (lock); |
| 966 | } |
| 967 | |
| 968 | void |
| 969 | thread_lock_unblock(struct thread *td, struct mtx *new) |
no test coverage detected