Skip to content

Commit

Permalink
Fix the coding style.
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary committed Dec 18, 2024
1 parent 45e3a5e commit d3a9a51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rmw_zenoh_cpp/src/detail/zenoh_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ class ZenohSession final
{
public:
ZenohSession(z_owned_session_t sess)
: inner_(sess) {
: inner_(sess)
{
std::call_once(initFlag, [] {
// This atexit function should be triggered before ZenohSession destruction
// Refer to https://en.cppreference.com/w/cpp/utility/program/exit
atexit([] {
ZenohSession::is_exiting.store(true);
});
// This atexit function should be triggered before ZenohSession destruction
// Refer to https://en.cppreference.com/w/cpp/utility/program/exit
atexit([] {
ZenohSession::is_exiting.store(true);
});
});
}
const z_loaned_session_t * loan();
Expand Down

0 comments on commit d3a9a51

Please sign in to comment.