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;