Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions camerad/exposure_modes.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ namespace Camera {
std::mutex queue_mutex; ///< mutex protects access to the queue
std::condition_variable queue_cv; ///< notify when the queue has new data

std::atomic<bool> is_producer_finished;
std::atomic<bool> is_producer_error;
std::atomic<bool> is_consumer_error;
// Read before a session sets them, by the reap at the start of the next
// one, so an indeterminate value surfaces as a failure that never
// happened: an abort that worked reports "abort failed"
std::atomic<bool> is_producer_finished{false};
std::atomic<bool> is_producer_error{false};
std::atomic<bool> is_consumer_error{false};

std::string get_type() { return this->type; }
std::vector<std::string> get_args() { return this->args; }
Expand Down
Loading