]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
WorkQueue: Allow WorkQueueVal to be specified with 1 type
authorSamuel Just <sam.just@inktank.com>
Mon, 29 Apr 2013 18:26:26 +0000 (11:26 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 7 May 2013 15:16:04 +0000 (08:16 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/common/WorkQueue.h

index ced952c49cd5aa25e60d428424a6e130865c314e..d936d77abef4a761991042982781eb1a55c9411d 100644 (file)
@@ -153,7 +153,7 @@ public:
     }
 
   };
-  template<typename T, typename U>
+  template<typename T, typename U = T>
   class WorkQueueVal : public WorkQueue_ {
     Mutex _lock;
     ThreadPool *pool;