StreamInput: notify other core every fourth of FIFO written.

This commit is contained in:
Jared Boone 2016-04-11 09:54:42 -07:00
parent a5c2143ca8
commit 9eefd56410

View File

@ -64,7 +64,7 @@ public:
private:
const size_t K;
const uint64_t event_bytes_mask = (1ULL << 12) - 1;
const uint64_t event_bytes_mask = (1ULL << (K - 2)) - 1;
uint64_t bytes_written = 0;
std::unique_ptr<uint8_t[]> data;
FIFO<uint8_t> fifo;