MCPcopy Create free account
hub / github.com/acl-dev/acl / set_handle

Method set_handle

lib_acl_cpp/src/stream/aio_stream.cpp:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void aio_stream::set_handle(aio_handle& handle) {
135 if (stream_) {
136 handle_->decrease();
137 }
138
139 handle_ = &handle;
140
141 if (stream_) {
142 stream_->aio = handle_->get_handle();
143 handle_->increase(); // �����첽������
144 }
145}
146
147ACL_ASTREAM* aio_stream::get_astream() const
148{

Callers

nothing calls this directly

Calls 3

decreaseMethod · 0.80
increaseMethod · 0.80
get_handleMethod · 0.45

Tested by

no test coverage detected