From: Colin Patrick McCabe Date: Fri, 27 May 2011 21:01:45 +0000 (-0700) Subject: common/Thread.h: const cleanup X-Git-Tag: v0.29~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8490b784cf6f94ce69054049d040d672b2fb62ae;p=ceph.git common/Thread.h: const cleanup Signed-off-by: Colin McCabe --- diff --git a/src/common/Thread.h b/src/common/Thread.h index 5ab4bfd3c5f1..3fc4bc2048c8 100644 --- a/src/common/Thread.h +++ b/src/common/Thread.h @@ -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); }