diff options
author | pjd <pjd@FreeBSD.org> | 2006-11-16 01:02:00 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-11-16 01:02:00 +0000 |
commit | 63d82b700dad091f36b4fdf7ac55bfe272a625ba (patch) | |
tree | fefa626382a1e038e96529f97a2dd9ce533319d8 /sys/sys | |
parent | b33232cde3fde704b882dff91db2b12776b4b38f (diff) | |
download | FreeBSD-src-63d82b700dad091f36b4fdf7ac55bfe272a625ba.zip FreeBSD-src-63d82b700dad091f36b4fdf7ac55bfe272a625ba.tar.gz |
Change sleepq_add(9) argument from 'struct mtx *' to 'struct lock_object *',
which allows to use it with different kinds of locks. For example it allows
to implement Solaris conditions variables which will be used in ZFS port on
top of sx(9) locks.
Reviewed by: jhb
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/sleepqueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/sleepqueue.h b/sys/sys/sleepqueue.h index 6bdc6ca..0979726 100644 --- a/sys/sys/sleepqueue.h +++ b/sys/sys/sleepqueue.h @@ -75,7 +75,7 @@ * using this interface as well (death to TDI_IWAIT!) */ -struct mtx; +struct lock_object; struct sleepqueue; struct thread; @@ -88,7 +88,7 @@ struct thread; void init_sleepqueues(void); void sleepq_abort(struct thread *td, int intrval); -void sleepq_add(void *, struct mtx *, const char *, int); +void sleepq_add(void *, struct lock_object *, const char *, int); struct sleepqueue *sleepq_alloc(void); void sleepq_broadcast(void *, int, int); void sleepq_free(struct sleepqueue *); |