File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,9 @@ struct hyper_waker *hyper_context_waker(struct hyper_context *cx);
718
718
void hyper_waker_free (struct hyper_waker * waker );
719
719
720
720
/*
721
- Free a waker that hasn't been woken.
721
+ Wake up the task associated with a waker.
722
+
723
+ NOTE: This consumes the waker. You should not use or free the waker afterwards.
722
724
*/
723
725
void hyper_waker_wake (struct hyper_waker * waker );
724
726
Original file line number Diff line number Diff line change @@ -418,7 +418,9 @@ ffi_fn! {
418
418
}
419
419
420
420
ffi_fn ! {
421
- /// Free a waker that hasn't been woken.
421
+ /// Wake up the task associated with a waker.
422
+ ///
423
+ /// NOTE: This consumes the waker. You should not use or free the waker afterwards.
422
424
fn hyper_waker_wake( waker: * mut hyper_waker) {
423
425
let waker = unsafe { Box :: from_raw( waker) } ;
424
426
waker. waker. wake( ) ;
You can’t perform that action at this time.
0 commit comments