upd: add [TBD] comment

This commit is contained in:
mutouyun 2022-10-30 17:09:55 +08:00
parent bde06d7b0d
commit 26c5078d1b
2 changed files with 5 additions and 1 deletions

View File

@ -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<Fmt>(ft), std::forward<A>(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;

View File

@ -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;