-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #961 surprising pipe event order
- Loading branch information
Showing
4 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Copyright 2023 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2024 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// | ||
// This software is supplied under the terms of the MIT License, a | ||
|
@@ -104,9 +104,9 @@ struct nni_pipe { | |
nni_listener *p_listener; | ||
nni_atomic_bool p_closed; | ||
nni_atomic_flag p_stop; | ||
bool p_cbs; | ||
nni_reap_node p_reap; | ||
nni_refcnt p_refcnt; | ||
nng_pipe_ev p_last_event; | ||
|
||
#ifdef NNG_ENABLE_STATS | ||
nni_stat_item st_root; | ||
|
@@ -125,15 +125,13 @@ extern int nni_sock_add_listener(nni_sock *, nni_listener *); | |
extern void nni_sock_remove_listener(nni_listener *); | ||
extern void nni_sock_remove_dialer(nni_dialer *); | ||
|
||
extern void nni_dialer_add_pipe(nni_dialer *, void *); | ||
extern void nni_dialer_shutdown(nni_dialer *); | ||
extern void nni_dialer_reap(nni_dialer *); | ||
extern void nni_dialer_destroy(nni_dialer *); | ||
extern void nni_dialer_timer_start(nni_dialer *); | ||
extern void nni_dialer_stop(nni_dialer *); | ||
|
||
extern void nni_listener_start_pipe(nni_listener *, nni_pipe *); | ||
extern void nni_listener_add_pipe(nni_listener *, void *); | ||
extern void nni_listener_shutdown(nni_listener *); | ||
extern void nni_listener_reap(nni_listener *); | ||
extern void nni_listener_destroy(nni_listener *); | ||
|