zookeeper-c-client
2020-10-20 10:03:44 0 举报
zookeeper-c-client 同步 / 异步工作方式。
作者其他创作
大纲/内容
sent_requests list
zookeeper server
to_send list
recv
async
io thread
...
send
zoo_aget
zookeeper_process
buf 2
POLLOUT
work thread
do_io
sync / async client
POLLIN
to_process list
callback thread
sync - watch_eventsasync - watch events + client response
ack 1
input_buffer 1
completion 2
do_completion
completion 1
flush_send_queue
input_buffer N
buf N
req 2
sync
req N
zoo_adelete
completions_to_process list
recv_buffer
req 1
wenfh2020.com
buf 1
process_completions
ack 2
completion 1
do_add_completion
completion N
input_buffer 2
zookeeper-c-client
completion 2
poll
0 条评论
下一页