diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2018-11-07 09:45:41 -0800 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2018-11-07 09:45:41 -0800 |
commit | ad0d9808b8f34e14016aa678f519c26007b29704 (patch) | |
tree | 35647c06c121bbc64357dc3c2f35a5142bd04123 /src | |
parent | 60a2866fa0923d5beb8c85a99d9f925031346c33 (diff) | |
download | libbu++-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/stable/thread.h | 2 |
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 | }; |