MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / pending_remove

Method pending_remove

TransceiverRAD1/fusb.cpp:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 */
142
143bool
144fusb_devhandle::pending_remove (libusb_transfer *lut)
145{
146 std::list<libusb_transfer*>::iterator result;
147 result = find (d_pending_rqsts.begin (), d_pending_rqsts.end (), lut);
148
149 if (result == d_pending_rqsts.end ()) {
150 LOG(ERR) << "Failed to find lut in pending_rqsts";
151
152 return false;
153 }
154 d_pending_rqsts.erase (result);
155 return true;
156}
157
158/*
159 * Submit the libusb_transfer to libusb

Callers 1

generic_callbackFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected