From ad0d9808b8f34e14016aa678f519c26007b29704 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 7 Nov 2018 09:45:41 -0800 Subject: Threads can give IDs now. The ID should be unique, but is otherwise useless. --- src/stable/thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stable/thread.h b/src/stable/thread.h index fdaac6c..477fb8b 100644 --- a/src/stable/thread.h +++ b/src/stable/thread.h @@ -28,6 +28,8 @@ namespace Bu bool operator==( const ThreadId &rhs ); bool operator!=( const ThreadId &rhs ); + pthread_t getId() const { return tId; } + private: pthread_t tId; }; -- cgit v1.2.3