Skip to content

Commit

Permalink
Fix syntax with thread safety annotation for clang
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <[email protected]>
  • Loading branch information
Emerson Knapp committed Jan 26, 2021
1 parent 23c1ccd commit f09345a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ class ROSBAG2_COMPRESSION_PUBLIC SequentialCompressionWriter
compressor_message_queue_ RCPPUTILS_TSA_GUARDED_BY(compressor_queue_mutex_);
std::queue<std::string> compressor_file_queue_ RCPPUTILS_TSA_GUARDED_BY(compressor_queue_mutex_);
std::vector<std::thread> compression_threads_;
std::atomic_bool compression_is_running_{false} RCPPUTILS_TSA_GUARDED_BY(compressor_queue_mutex_);
std::atomic_bool compression_is_running_
RCPPUTILS_TSA_GUARDED_BY(compressor_queue_mutex_) {false};
std::recursive_mutex storage_mutex_;
std::condition_variable compressor_condition_;

Expand Down

0 comments on commit f09345a

Please sign in to comment.