]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Thread.h: const cleanup
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 27 May 2011 21:01:45 +0000 (14:01 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 27 May 2011 21:01:45 +0000 (14:01 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/common/Thread.h

index 5ab4bfd3c5f17767c20b5d19e599d072f2df7d37..3fc4bc2048c876c74c5346a1df2edc59a6fd1d67 100644 (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); }