]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a few functions as const where possible.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Mar 2010 00:36:15 +0000 (00:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Mar 2010 00:36:15 +0000 (00:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@20757 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/thread_management.h

index c5ffa901404a4ff4729f652969c21eec254e64dc..6070b076fdacd9f8cc6fff406c4b35df887969aa 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -179,7 +179,7 @@ namespace Threads
                                        * this function of course does
                                        * nothing.
                                        */
-      inline void signal () {}
+      inline void signal () const {}
 
                                       /**
                                        * Signal to multiple listener
@@ -190,7 +190,7 @@ namespace Threads
                                        * this function of course does
                                        * nothing.
                                        */
-      inline void broadcast () {}
+      inline void broadcast () const {}
 
                                       /**
                                        * Wait for the condition to be
@@ -206,7 +206,7 @@ namespace Threads
                                        * of course does nothing, but
                                        * returns immediately.
                                        */
-      inline void wait (DummyThreadMutex &) {}
+      inline void wait (DummyThreadMutex &) const {}
   };
 
 
@@ -251,13 +251,13 @@ namespace Threads
                                        * i.e. this function is a
                                        * no-op.
                                        */
-      int wait () { return 0; }
+      int wait () const { return 0; }
 
                                       /**
                                        * Dump the state of this
                                        * object. Here: do nothing.
                                        */
-      void dump () {}
+      void dump () const {}
 
                                       /** @addtogroup Exceptions
                                        * @{ */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.