common/Thread.h: const cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This commit is contained in:
Colin Patrick McCabe 2011-05-27 14:01:45 -07:00
parent 7cfb3b6afe
commit 8490b784cf

View File

@ -45,7 +45,7 @@ class Thread {
public:
static int get_num_threads(void);
pthread_t &get_thread_id() { return thread_id; }
const pthread_t &get_thread_id() { return thread_id; }
bool is_started() { return thread_id != 0; }
bool am_self() { return (pthread_self() == thread_id); }