static void timer_callback(CFRunLoopRef timer, void *info) { FSEventStreamRef streamRef = (FSEventStreamRef)info; log_debug("CFAbsoluteTimeGetCurrent() => %.3f", CFAbsoluteTimeGetCurrent()); log_debug("FSEventStreamFlushAsync(streamRef = %p)...", streamRef); FSEventStreamFlushAsync(streamRef); }
void FSEventsEventPublisher::flush(bool async) { if (stream_ != nullptr && stream_started_) { if (async) { FSEventStreamFlushAsync(stream_); } else { FSEventStreamFlushSync(stream_); } } }