diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-01 14:34:29 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-01 14:34:29 -0800 |
| commit | 3fd43c488b47874db22a87a1d87eed94bbd85725 (patch) | |
| tree | ed9fe38b370c9a6162ac05596b91adfac9cb5579 /src/core/pipe.h | |
| parent | c7b541af4a1a2c410dc63a638a17adb31d7342a3 (diff) | |
| download | nng-3fd43c488b47874db22a87a1d87eed94bbd85725.tar.gz nng-3fd43c488b47874db22a87a1d87eed94bbd85725.tar.bz2 nng-3fd43c488b47874db22a87a1d87eed94bbd85725.zip | |
Pipe simplifications for thread management.
This may also address a race in closing down pipes. Now pipes are always
registered with the socket. They also always have both a sender and receiver
thread. If the protocol doesn't need one or the other, the stock thread just
exits early.
Diffstat (limited to 'src/core/pipe.h')
| -rw-r--r-- | src/core/pipe.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h index d12320b2..3c2c1166 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -27,13 +27,8 @@ struct nng_pipe { nni_endpt * p_ep; int p_reap; int p_active; - int p_abort; - nni_mutex p_mx; - nni_cond p_cv; - void (*p_send)(void *); - void (*p_recv)(void *); - nni_thread * p_send_thr; - nni_thread * p_recv_thr; + nni_thr p_send_thr; + nni_thr p_recv_thr; }; // Pipe operations that protocols use. |
