diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-09-14 10:52:26 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-09-14 10:52:26 +0000 |
commit | 1a99c0928d2542d03995cea75e0ac0da4a347e31 (patch) | |
tree | 68672490f99e5c549ab2b41d07eaaaafa9032742 /lib/libc/stdlib/heapsort.c | |
parent | e64a8234e347ea26e7285c6a808a390b35968e14 (diff) | |
download | FreeBSD-src-1a99c0928d2542d03995cea75e0ac0da4a347e31.zip FreeBSD-src-1a99c0928d2542d03995cea75e0ac0da4a347e31.tar.gz |
Implement callout_drain_async(), inspired by the projects/hps_head
branch.
This function is used to drain a callout via a callback instead of
blocking the caller until the drain is complete. Refer to the
callout_drain_async() manual page for a detailed description.
Limitation: If a lock is used with the callout, the callout can only
be drained asynchronously one time unless the callout_init_mtx()
function is called again. This limitation is not present in
projects/hps_head and will require more invasive changes to the
timeout code, which was not in the scope of this patch.
Differential Revision: https://reviews.freebsd.org/D3521
Reviewed by: wblock
MFC after: 1 month
Diffstat (limited to 'lib/libc/stdlib/heapsort.c')
0 files changed, 0 insertions, 0 deletions