From f5532ec1054764be8cd407f9a39af05d99f25e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucca=20Jim=C3=A9nez=20K=C3=B6nings?= Date: Fri, 19 Jan 2024 14:10:14 +0100 Subject: [PATCH] remove unecessary comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucca Jiménez Könings --- src/Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common.cpp b/src/Common.cpp index c16f953..a2036b6 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -274,7 +274,7 @@ void RegisterThread(const std::string& str) { #elif defined(BEAMMP_APPLE) ThreadId = std::to_string(getpid()); // todo: research if 'getpid()' is a valid, posix compliant alternative to 'gettid()' #elif defined(BEAMMP_LINUX) - ThreadId = std::to_string(gettid()); //todo: 'gettid()' may not produce the intended behavior, as tid's can be the same as pid's when the calling process only has one thread (according to this StackOverflow answer: https://stackoverflow.com/a/8787888). 'gettid()' is also not POSIX compliant. consider to refactor this in a posix compliant way (maybe 'pthread_self()'?). + ThreadId = std::to_string(gettid()); #elif defined(BEAMMP_FREEBSD) ThreadId = std::to_string(getpid()); #endif