1
0
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:
Konstantin Tsoy
2023-08-01 19:31:34 -07:00
committed by Facebook GitHub Bot
parent 502d26d19b
commit 94c254716d
4 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -151,4 +151,8 @@ struct BatchWriterDeleter {
};
using BatchWriterPtr = std::unique_ptr<BatchWriter, BatchWriterDeleter>;
bool useSinglePacketInplaceBatchWriter(
uint32_t maxBatchSize,
quic::DataPathType dataPathType);
} // namespace quic

View File

@ -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

View File

@ -12,10 +12,6 @@
namespace quic {
bool useSinglePacketInplaceBatchWriter(
uint32_t maxBatchSize,
quic::DataPathType dataPathType);
BatchWriterPtr makeGsoBatchWriter(uint32_t batchSize);
BatchWriterPtr makeGsoInPlaceBatchWriter(
uint32_t batchSize,