mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-29 03:41:11 +03:00
Move a func to fix mvfst mobile build
Summary: Broke in one of the previous commits. Reviewed By: hanidamlaj Differential Revision: D47962468 fbshipit-source-id: 532e9356cb7e1bba2e45ac0a18440a12aed1eb25
This commit is contained in:
committed by
Facebook GitHub Bot
parent
502d26d19b
commit
94c254716d
@ -147,4 +147,11 @@ ssize_t SendmmsgPacketBatchWriter::write(
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool useSinglePacketInplaceBatchWriter(
|
||||
uint32_t maxBatchSize,
|
||||
quic::DataPathType dataPathType) {
|
||||
return maxBatchSize == 1 &&
|
||||
dataPathType == quic::DataPathType::ContinuousMemory;
|
||||
}
|
||||
|
||||
} // namespace quic
|
||||
|
@ -151,4 +151,8 @@ struct BatchWriterDeleter {
|
||||
};
|
||||
|
||||
using BatchWriterPtr = std::unique_ptr<BatchWriter, BatchWriterDeleter>;
|
||||
|
||||
bool useSinglePacketInplaceBatchWriter(
|
||||
uint32_t maxBatchSize,
|
||||
quic::DataPathType dataPathType);
|
||||
} // namespace quic
|
||||
|
@ -135,13 +135,6 @@ class ThreadLocalBatchWriterCache : public folly::AsyncTimeout {
|
||||
|
||||
namespace quic {
|
||||
|
||||
bool useSinglePacketInplaceBatchWriter(
|
||||
uint32_t maxBatchSize,
|
||||
quic::DataPathType dataPathType) {
|
||||
return maxBatchSize == 1 &&
|
||||
dataPathType == quic::DataPathType::ContinuousMemory;
|
||||
}
|
||||
|
||||
// BatchWriterDeleter
|
||||
void BatchWriterDeleter::operator()(BatchWriter* batchWriter) {
|
||||
#if USE_THREAD_LOCAL_BATCH_WRITER
|
||||
|
@ -12,10 +12,6 @@
|
||||
|
||||
namespace quic {
|
||||
|
||||
bool useSinglePacketInplaceBatchWriter(
|
||||
uint32_t maxBatchSize,
|
||||
quic::DataPathType dataPathType);
|
||||
|
||||
BatchWriterPtr makeGsoBatchWriter(uint32_t batchSize);
|
||||
BatchWriterPtr makeGsoInPlaceBatchWriter(
|
||||
uint32_t batchSize,
|
||||
|
Reference in New Issue
Block a user