aboutsummaryrefslogtreecommitdiff
path: root/src/core/panic.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-09-06 13:08:44 -0700
committerGarrett D'Amore <garrett@damore.org>2021-09-06 13:11:57 -0700
commit515cdff883f44fbd192f7d957f47d6e2e1385dd0 (patch)
tree7fe06f7e71ed2b7bbaf87c9a917437d219c2182f /src/core/panic.c
parent468714a51bbc9fc6acf03479b8825ad25a2ffeb0 (diff)
downloadnng-515cdff883f44fbd192f7d957f47d6e2e1385dd0.tar.gz
nng-515cdff883f44fbd192f7d957f47d6e2e1385dd0.tar.bz2
nng-515cdff883f44fbd192f7d957f47d6e2e1385dd0.zip
Eliminate the pipe mutex and use atomic for pipe closed.
This eliminates several mutex operations done each time a pipe is created or destroyed. For large scale systems this should reduce overall pressure on the memory subsystem, and scale better as many threads are coming and going. This also reduces the overall size of nni_pipe -- on Linux by 36 bytes typically.
Diffstat (limited to 'src/core/panic.c')
0 files changed, 0 insertions, 0 deletions