Support min write size with opt_writer()

work
pabr 2019-02-13 17:20:15 +01:00
rodzic b9dad94ab2
commit 908ce1927c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -217,8 +217,8 @@ namespace leansdr {
// Convenience functions for working with optional pipes
template<typename T>
pipewriter<T> *opt_writer(pipebuf<T> *buf) {
return buf ? new pipewriter<T>(*buf) : NULL;
pipewriter<T> *opt_writer(pipebuf<T> *buf, unsigned long min_write=1) {
return buf ? new pipewriter<T>(*buf, min_write) : NULL;
}
template<typename T>