Skip to content

Commit

Permalink
docs(ffi): fix copy-paste error on hyper_waker_wake (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Jul 26, 2021
1 parent 19f38b3 commit 6393a0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion capi/include/hyper.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,9 @@ struct hyper_waker *hyper_context_waker(struct hyper_context *cx);
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);

Expand Down
4 changes: 3 additions & 1 deletion src/ffi/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ 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) {
let waker = unsafe { Box::from_raw(waker) };
waker.waker.wake();
Expand Down

1 comment on commit 6393a0c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 6393a0c Previous: 19f38b3 Ratio
http2_parallel_x10_req_10kb_100_chunks_adaptive_window 18766358 ns/iter (± 10082933) 9119978 ns/iter (± 8781449) 2.06

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.