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 16, 2024
1 parent ed041b2 commit 006ae77
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 @@ -34,13 +34,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 006ae77

Please sign in to comment.