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