diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-10-19 17:37:02 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-10-19 17:37:02 +0300 |
commit | 6031c63225838d6bc266c4f015d9a1085f600324 (patch) | |
tree | 5cf5e63f69820d087a91ebdcc786c46cd5bc1be0 /src/nxt_process.h | |
parent | 6532e46465276efcedae299ce290eb8dff0ece57 (diff) | |
download | unit-6031c63225838d6bc266c4f015d9a1085f600324.tar.gz unit-6031c63225838d6bc266c4f015d9a1085f600324.tar.bz2 |
Introducing mmap_handler to count references to shared memory.
"All problems in computer science can be
solved by another level of indirection"
Butler Lampson
Completion handlers for application response buffers executed after
sending the data to client. Application worker can be stopped right
after send response buffers to router. Worker stop causes removal
of all data structures for the worker.
To prevent shared memory segment unmap, need to count the number of
buffers which uses it. So instead of direct reference to shared
memory, need to reference to intermediate 'handler' structure with
use counter and pointer to shared memory.
Diffstat (limited to 'src/nxt_process.h')
0 files changed, 0 insertions, 0 deletions