16 #ifndef IOX_HOOFS_POSIX_WRAPPER_PTHREAD_HPP
17 #define IOX_HOOFS_POSIX_WRAPPER_PTHREAD_HPP
19 #include "iceoryx_hoofs/cxx/expected.hpp"
20 #include "iceoryx_hoofs/cxx/string.hpp"
21 #include "iceoryx_hoofs/platform/pthread.hpp"
27 constexpr uint64_t MAX_THREAD_NAME_LENGTH = 15U;
29 using ThreadName_t = cxx::string<MAX_THREAD_NAME_LENGTH>;
31 void setThreadName(pthread_t thread,
const ThreadName_t& name) noexcept;
32 ThreadName_t getThreadName(pthread_t thread) noexcept;
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:29