File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 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);
718718void hyper_waker_free (struct hyper_waker * waker );
719719
720720/*
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.
722724 */
723725void hyper_waker_wake (struct hyper_waker * waker );
724726
Original file line number Diff line number Diff line change @@ -418,7 +418,9 @@ ffi_fn! {
418418}
419419
420420ffi_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.
422424 fn hyper_waker_wake( waker: * mut hyper_waker) {
423425 let waker = unsafe { Box :: from_raw( waker) } ;
424426 waker. waker. wake( ) ;
You can’t perform that action at this time.
0 commit comments