X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fio%2Fasync%2FAsyncSocket.h;fp=folly%2Fio%2Fasync%2FAsyncSocket.h;h=44ae5968b80d580bc41056de8f91a8a2501b1404;hp=17980bb7c82dda9abd2f9767c31d2c58b245ca3e;hb=23e45679ddec0cc620ee6fedbb7891e488669bdd;hpb=f5882bb6415b07aaa5d74199a16c610f6da7824c diff --git a/folly/io/async/AsyncSocket.h b/folly/io/async/AsyncSocket.h index 17980bb7..44ae5968 100644 --- a/folly/io/async/AsyncSocket.h +++ b/folly/io/async/AsyncSocket.h @@ -809,6 +809,12 @@ class AsyncSocket : virtual public AsyncTransportWrapper { */ bool isZeroCopyWriteInProgress() const noexcept; + /** + * Tries to process the msg error queue + * And returns true if there are no more zero copy writes in progress + */ + bool processZeroCopyWriteInProgress() noexcept; + /** * writeReturn is the total number of bytes written, or WRITE_ERROR on error. * If no data has been written, 0 is returned.