当前位置 : 主页 > 编程语言 > c语言 >

AsyncMessenger

来源:互联网 收集:自由互联 发布时间:2023-08-25
how theAsyncMessenger work. AsyncMessenger implements Message //ouput message DispatchQueue::start =dispatch_thread.create("ms_dispatch") =DispatchQueue::entry() = Messenger::ms_deliver_dispatch = rangedispatchers, callDispatcher::ms_dispat

how the AsyncMessenger work.

AsyncMessenger  implements Message


//ouput message

DispatchQueue::start => dispatch_thread.create("ms_dispatch") => DispatchQueue::entry() =>  Messenger::ms_deliver_dispatch

=> range dispatchers, call Dispatcher::ms_dispatch2


take DaemonServer for example.

DaemonServer implements Dispatcher,  add Messenger as its member,

call add_dispatcher_tail(this)

=> DaemonServer:: ms_dispatch2


//input message

ProtocolV2::handle_message => AsyncConnection::dispatch_queue

=> DispatchQueue::enqueue

or => DispatchQueue::fast_dispatch


constructure

AsyncMessenger_ceph





【文章出处:香港站群服务器 http://www.558idc.com/hkzq.html 复制请保留原URL】
上一篇:源码编译GCC7.3.0
下一篇:没有了
网友评论