Searched refs:bytes_to_flush_ (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/device/serial/
H A Ddata_sink_receiver.cc23 // Attempts to discard |bytes_to_flush_| bytes from |handle|. Returns
25 // |bytes_to_flush_| bytes were flushed or the error if one is encountered
37 uint32_t bytes_to_flush_; member in class:device::DataSinkReceiver::PendingFlush
284 : received_flush_(false), bytes_to_flush_(0) {
290 bytes_to_flush_ = num_bytes;
296 uint32_t num_bytes = bytes_to_flush_;
301 DCHECK(num_bytes <= bytes_to_flush_);
302 bytes_to_flush_ -= num_bytes;
303 return bytes_to_flush_ == 0 ? MOJO_RESULT_OK : MOJO_RESULT_SHOULD_WAIT;

Completed in 73 milliseconds