MCPcopy Create free account
hub / github.com/apache/brpc / ~Stream

Method ~Stream

src/brpc/stream.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66Stream::~Stream() {
67 // Clear pending buffer
68 if (_pending_buf != NULL) {
69 delete _pending_buf;
70 _pending_buf = NULL;
71 }
72 CHECK(_host_socket == NULL);
73 bthread_mutex_destroy(&_connect_mutex);
74 bthread_mutex_destroy(&_congestion_control_mutex);
75 bthread_id_list_destroy(&_writable_wait_list);
76}
77
78int Stream::Create(const StreamOptions &options,
79 const StreamSettings *remote_settings,

Callers

nothing calls this directly

Calls 2

bthread_mutex_destroyFunction · 0.85
bthread_id_list_destroyFunction · 0.85

Tested by

no test coverage detected