From 26c5078d1b1a3573c1f84092e58377900ea04596 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 30 Oct 2022 17:09:55 +0800 Subject: [PATCH] upd: add [TBD] comment --- include/libimp/log.h | 2 +- include/libipc/shm.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/libimp/log.h b/include/libimp/log.h index a88ed70..bcca750 100644 --- a/include/libimp/log.h +++ b/include/libimp/log.h @@ -130,7 +130,7 @@ class gripper { auto px = fmt("[{}][{:%Y-%m-%d %H:%M:%S}.{:03}][{}] ", types[enum_cast(l)], tp, ms, func_); printer_.output(l, std::move(px += fmt(std::forward(ft), std::forward(args)...))); } catch (std::exception const &e) { - /// @brief [TBD] std::string constructor may throw an exception + /// @remark [TBD] std::string constructor may throw an exception printer_.output(level::failed, e.what()); } return *this; diff --git a/include/libipc/shm.h b/include/libipc/shm.h index 666ca18..607cef0 100644 --- a/include/libipc/shm.h +++ b/include/libipc/shm.h @@ -35,6 +35,10 @@ LIBIMP_EXPORT void *shm_get(shm_t) noexcept; /// @return 0 on failure. LIBIMP_EXPORT std::size_t shm_size(shm_t) noexcept; +/// @brief Sets the memory size based on the shared memory handle. +/// @remark [TBD] +LIBIMP_EXPORT ::LIBIMP_::result_code shm_size(shm_t, std::size_t) noexcept; + /// @brief Gets the name of the shared memory file based on the shared memory handle. /// @return empty string on failure. LIBIMP_EXPORT std::string shm_name(shm_t) noexcept;