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

Method timer_callback

lib_acl_cpp/src/stream/aio_ostream.cpp:20–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void aio_timer_writer::timer_callback(unsigned int id acl_unused)
21{
22 if (out_ == NULL) {
23 return;
24 }
25
26 bool findit = false;
27
28 if (out_->timer_writers_) {
29 std::list<aio_timer_writer*>::iterator it =
30 out_->timer_writers_->begin();
31 for (; it != out_->timer_writers_->end(); ++it) {
32 if ((*it) == this) {
33 out_->timer_writers_->erase(it);
34 findit = true;
35 break;
36 }
37 }
38 }
39
40 if (findit == false) {
41 logger_warn("Warning: timer_writer is the end!");
42 }
43
44 out_->write(buf_.c_str(), (int) buf_.length(), 0, NULL);
45}
46
47//////////////////////////////////////////////////////////////////////
48

Callers

nothing calls this directly

Calls 5

beginMethod · 0.80
endMethod · 0.45
writeMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected