Skip to content

Commit

Permalink
Fix warning from ClassLoader in sequential compression reader and wri…
Browse files Browse the repository at this point in the history
…ter (#1299)

- Fix for warning messages "Warning: class_loader.ClassLoader:
SEVERE WARNING!!! Attempting to unload library while objects
created by this loader exist in the heap!"

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit dded5cf)
  • Loading branch information
MichaelOrlov authored and mergify[bot] committed May 3, 2023
1 parent 8485525 commit 3034213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ class ROSBAG2_COMPRESSION_PUBLIC SequentialCompressionReader
*/
void setup_decompression();

std::shared_ptr<rosbag2_compression::BaseDecompressorInterface> decompressor_{};
rosbag2_compression::CompressionMode compression_mode_{
rosbag2_compression::CompressionMode::NONE};
std::unique_ptr<rosbag2_compression::CompressionFactory> compression_factory_{};
std::shared_ptr<rosbag2_compression::BaseDecompressorInterface> decompressor_{};

rosbag2_storage::StorageOptions storage_options_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ class ROSBAG2_COMPRESSION_PUBLIC SequentialCompressionWriter
virtual void stop_compressor_threads();

private:
std::shared_ptr<rosbag2_compression::BaseCompressorInterface> compressor_{};
std::unique_ptr<rosbag2_compression::CompressionFactory> compression_factory_{};
std::shared_ptr<rosbag2_compression::BaseCompressorInterface> compressor_{};
std::mutex compressor_queue_mutex_;
std::queue<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>>
compressor_message_queue_ RCPPUTILS_TSA_GUARDED_BY(compressor_queue_mutex_);
Expand Down

0 comments on commit 3034213

Please sign in to comment.