From 20f0a69c7511b82349d122a28c2fff3d05deba77 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 14 Feb 2019 22:40:46 +0100 Subject: [PATCH] pipeline: use decimal representation for unique thread ID on FreeBSD This matches the behaviour on Linux. --- panda/src/pipeline/threadPosixImpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pipeline/threadPosixImpl.cxx b/panda/src/pipeline/threadPosixImpl.cxx index cdabf033c8..18e76cb8d2 100644 --- a/panda/src/pipeline/threadPosixImpl.cxx +++ b/panda/src/pipeline/threadPosixImpl.cxx @@ -181,7 +181,7 @@ join() { std::string ThreadPosixImpl:: get_unique_id() const { std::ostringstream strm; - strm << getpid() << "." << _thread; + strm << getpid() << "." << (uintptr_t)_thread; return strm.str(); }