diff options
author | jhb <jhb@FreeBSD.org> | 2004-02-19 22:03:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-02-19 22:03:52 +0000 |
commit | a0f2609521e3d2c81a71159e0b06f43371aa11eb (patch) | |
tree | e5b31707f4b54ede4588ccf006d6b566539d6dcd /lib/libc/stdlib/malloc.c | |
parent | 9d5e12afecfe191b704ae621a55b67f07261dd7d (diff) | |
download | FreeBSD-src-a0f2609521e3d2c81a71159e0b06f43371aa11eb.zip FreeBSD-src-a0f2609521e3d2c81a71159e0b06f43371aa11eb.tar.gz |
Tidy up the thread taskqueue implementation and close a lost wakeup race.
Instead of creating a mutex that we msleep on but don't actually lock when
doing the corresponding wakeup(), in the kthread, lock the mutex associated
with our taskqueue and msleep while the queue is empty. Assert that the
queue is locked when the callback function is called to wake the kthread.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions