Hide CaptureThread event mask, only used internally.

This commit is contained in:
Jared Boone 2016-06-19 11:20:45 -07:00
parent 0da48b099c
commit dbc2a5c9ea
3 changed files with 5 additions and 4 deletions

View file

@ -92,7 +92,7 @@ CaptureThread::CaptureThread(
CaptureThread::~CaptureThread() {
if( thread ) {
chThdTerminate(thread);
chEvtSignal(thread, EVT_MASK_CAPTURE_THREAD);
chEvtSignal(thread, event_mask_loop_wake);
chThdWait(thread);
thread = nullptr;
}
@ -108,7 +108,7 @@ void CaptureThread::check_fifo_isr() {
const auto fifo = StreamOutput::fifo_buffers_full;
if( fifo ) {
if( !fifo->is_empty() ) {
chEvtSignalI(thread, EVT_MASK_CAPTURE_THREAD);
chEvtSignalI(thread, event_mask_loop_wake);
}
}
}
@ -125,7 +125,7 @@ Optional<File::Error> CaptureThread::run() {
}
stream.release_buffer(buffer);
} else {
chEvtWaitAny(EVT_MASK_CAPTURE_THREAD);
chEvtWaitAny(event_mask_loop_wake);
}
}