mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
common/Thread.h: const cleanup
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This commit is contained in:
parent
7cfb3b6afe
commit
8490b784cf
@ -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); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user