docs(ffi): fix copy-paste error on hyper_waker_wake (#2604)
This commit is contained in:
@@ -718,7 +718,9 @@ struct hyper_waker *hyper_context_waker(struct hyper_context *cx);
|
|||||||
void hyper_waker_free(struct hyper_waker *waker);
|
void hyper_waker_free(struct hyper_waker *waker);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Free a waker that hasn't been woken.
|
Wake up the task associated with a waker.
|
||||||
|
|
||||||
|
NOTE: This consumes the waker. You should not use or free the waker afterwards.
|
||||||
*/
|
*/
|
||||||
void hyper_waker_wake(struct hyper_waker *waker);
|
void hyper_waker_wake(struct hyper_waker *waker);
|
||||||
|
|
||||||
|
|||||||
@@ -418,7 +418,9 @@ ffi_fn! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ffi_fn! {
|
ffi_fn! {
|
||||||
/// Free a waker that hasn't been woken.
|
/// Wake up the task associated with a waker.
|
||||||
|
///
|
||||||
|
/// NOTE: This consumes the waker. You should not use or free the waker afterwards.
|
||||||
fn hyper_waker_wake(waker: *mut hyper_waker) {
|
fn hyper_waker_wake(waker: *mut hyper_waker) {
|
||||||
let waker = unsafe { Box::from_raw(waker) };
|
let waker = unsafe { Box::from_raw(waker) };
|
||||||
waker.waker.wake();
|
waker.waker.wake();
|
||||||
|
|||||||
Reference in New Issue
Block a user