23 using std::make_shared;
29 if (name ==
"async") {
32 }
else if (name ==
"max_buffer_size") {
35 throw std::invalid_argument(to<string>(
"must be a positive integer"));
47 auto asyncWriter = make_shared<AsyncFileWriter>(
std::move(file));
54 throw std::invalid_argument(to<string>(
55 "the \"max_buffer_size\" option is only valid for async file " 58 return make_shared<ImmediateFileWriter>(
std::move(file));
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
bool processOption(StringPiece name, StringPiece value)
constexpr auto size(C const &c) -> decltype(c.size())
FOLLY_CPP14_CONSTEXPR bool hasValue() const noexcept
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
FOLLY_CPP14_CONSTEXPR const Value & value() const &
std::shared_ptr< LogWriter > createWriter(File file)
Optional< size_t > maxBufferSize_