aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2018-11-07 09:45:41 -0800
committerMike Buland <mbuland@penny-arcade.com>2018-11-07 09:45:41 -0800
commitad0d9808b8f34e14016aa678f519c26007b29704 (patch)
tree35647c06c121bbc64357dc3c2f35a5142bd04123
parent60a2866fa0923d5beb8c85a99d9f925031346c33 (diff)
downloadlibbu++-ad0d9808b8f34e14016aa678f519c26007b29704.tar.gz
libbu++-ad0d9808b8f34e14016aa678f519c26007b29704.tar.bz2
libbu++-ad0d9808b8f34e14016aa678f519c26007b29704.tar.xz
libbu++-ad0d9808b8f34e14016aa678f519c26007b29704.zip
Threads can give IDs now.
The ID should be unique, but is otherwise useless.
-rw-r--r--src/stable/thread.h2
1 files changed, 2 insertions, 0 deletions
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
28 bool operator==( const ThreadId &rhs ); 28 bool operator==( const ThreadId &rhs );
29 bool operator!=( const ThreadId &rhs ); 29 bool operator!=( const ThreadId &rhs );
30 30
31 pthread_t getId() const { return tId; }
32
31 private: 33 private:
32 pthread_t tId; 34 pthread_t tId;
33 }; 35 };