/Users/deen/code/yugabyte-db/src/yb/gutil/bind_internal.h
Line | Count | Source (jump to first uncovered line) |
1 | | // This file was GENERATED by command: |
2 | | // pump.py bind_internal.h.pump |
3 | | // DO NOT EDIT BY HAND!!! |
4 | | |
5 | | |
6 | | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 | | // Use of this source code is governed by a BSD-style license that can be |
8 | | // found in the LICENSE file. |
9 | | // |
10 | | // The following only applies to changes made to this file as part of YugaByte development. |
11 | | // |
12 | | // Portions Copyright (c) YugaByte, Inc. |
13 | | // |
14 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
15 | | // in compliance with the License. You may obtain a copy of the License at |
16 | | // |
17 | | // http://www.apache.org/licenses/LICENSE-2.0 |
18 | | // |
19 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
20 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
21 | | // or implied. See the License for the specific language governing permissions and limitations |
22 | | // under the License. |
23 | | // |
24 | | |
25 | | #ifndef YB_GUTIL_BIND_INTERNAL_H_ |
26 | | #define YB_GUTIL_BIND_INTERNAL_H_ |
27 | | |
28 | | #include "yb/gutil/bind_helpers.h" |
29 | | #include "yb/gutil/callback_internal.h" |
30 | | #include "yb/gutil/raw_scoped_refptr_mismatch_checker.h" |
31 | | #include "yb/gutil/template_util.h" |
32 | | |
33 | | #if defined(OS_WIN) |
34 | | #include "yb/gutil/bind_internal_win.h" |
35 | | #endif |
36 | | |
37 | | // During Chromium import, WeakPtr-related code was removed. |
38 | | |
39 | | namespace yb { |
40 | | namespace internal { |
41 | | |
42 | | // See yb/gutil/callback.h for user documentation. |
43 | | // |
44 | | // |
45 | | // CONCEPTS: |
46 | | // Runnable -- A type (really a type class) that has a single Run() method |
47 | | // and a RunType typedef that corresponds to the type of Run(). |
48 | | // A Runnable can declare that it should treated like a method |
49 | | // call by including a typedef named IsMethod. The value of |
50 | | // this typedef is NOT inspected, only the existence. When a |
51 | | // Runnable declares itself a method, Bind() will enforce special |
52 | | // refcounting + WeakPtr handling semantics for the first |
53 | | // parameter which is expected to be an object. |
54 | | // Functor -- A copyable type representing something that should be called. |
55 | | // All function pointers, Callback<>, and Runnables are functors |
56 | | // even if the invocation syntax differs. |
57 | | // RunType -- A function type (as opposed to function _pointer_ type) for |
58 | | // a Run() function. Usually just a convenience typedef. |
59 | | // (Bound)ArgsType -- A function type that is being (ab)used to store the |
60 | | // types of set of arguments. The "return" type is always |
61 | | // void here. We use this hack so that we do not need |
62 | | // a new type name for each arity of type. (eg., |
63 | | // BindState1, BindState2). This makes forward |
64 | | // declarations and friending much much easier. |
65 | | // |
66 | | // Types: |
67 | | // RunnableAdapter<> -- Wraps the various "function" pointer types into an |
68 | | // object that adheres to the Runnable interface. |
69 | | // There are |3*ARITY| RunnableAdapter types. |
70 | | // FunctionTraits<> -- Type traits that unwrap a function signature into a |
71 | | // a set of easier to use typedefs. Used mainly for |
72 | | // compile time asserts. |
73 | | // There are |ARITY| FunctionTraits types. |
74 | | // ForceVoidReturn<> -- Helper class for translating function signatures to |
75 | | // equivalent forms with a "void" return type. |
76 | | // There are |ARITY| ForceVoidReturn types. |
77 | | // FunctorTraits<> -- Type traits used determine the correct RunType and |
78 | | // RunnableType for a Functor. This is where function |
79 | | // signature adapters are applied. |
80 | | // There are |ARITY| ForceVoidReturn types. |
81 | | // MakeRunnable<> -- Takes a Functor and returns an object in the Runnable |
82 | | // type class that represents the underlying Functor. |
83 | | // There are |O(1)| MakeRunnable types. |
84 | | // InvokeHelper<> -- Take a Runnable + arguments and actully invokes it. |
85 | | // Handle the differing syntaxes needed for WeakPtr<> support, |
86 | | // and for ignoring return values. This is separate from |
87 | | // Invoker to avoid creating multiple version of Invoker<> |
88 | | // which grows at O(n^2) with the arity. |
89 | | // There are |k*ARITY| InvokeHelper types. |
90 | | // Invoker<> -- Unwraps the curried parameters and executes the Runnable. |
91 | | // There are |(ARITY^2 + ARITY)/2| Invoketypes. |
92 | | // BindState<> -- Stores the curried parameters, and is the main entry point |
93 | | // into the Bind() system, doing most of the type resolution. |
94 | | // There are ARITY BindState types. |
95 | | |
96 | | // RunnableAdapter<> |
97 | | // |
98 | | // The RunnableAdapter<> templates provide a uniform interface for invoking |
99 | | // a function pointer, method pointer, or const method pointer. The adapter |
100 | | // exposes a Run() method with an appropriate signature. Using this wrapper |
101 | | // allows for writing code that supports all three pointer types without |
102 | | // undue repetition. Without it, a lot of code would need to be repeated 3 |
103 | | // times. |
104 | | // |
105 | | // For method pointers and const method pointers the first argument to Run() |
106 | | // is considered to be the received of the method. This is similar to STL's |
107 | | // mem_fun(). |
108 | | // |
109 | | // This class also exposes a RunType typedef that is the function type of the |
110 | | // Run() function. |
111 | | // |
112 | | // If and only if the wrapper contains a method or const method pointer, an |
113 | | // IsMethod typedef is exposed. The existence of this typedef (NOT the value) |
114 | | // marks that the wrapper should be considered a method wrapper. |
115 | | |
116 | | template <typename Functor> |
117 | | class RunnableAdapter; |
118 | | |
119 | | // Function: Arity 0. |
120 | | template <typename R> |
121 | | class RunnableAdapter<R(*)()> { |
122 | | public: |
123 | | typedef R (RunType)(); |
124 | | |
125 | | explicit RunnableAdapter(R(*function)()) |
126 | 87.5k | : function_(function) { |
127 | 87.5k | } _ZN2yb8internal15RunnableAdapterIPFivEEC2ES3_ Line | Count | Source | 126 | 1 | : function_(function) { | 127 | 1 | } |
_ZN2yb8internal15RunnableAdapterIPFyvEEC2ES3_ Line | Count | Source | 126 | 87.5k | : function_(function) { | 127 | 87.5k | } |
|
128 | | |
129 | 75.8k | R Run() { |
130 | 75.8k | return function_(); |
131 | 75.8k | } _ZN2yb8internal15RunnableAdapterIPFivEE3RunEv Line | Count | Source | 129 | 1 | R Run() { | 130 | 1 | return function_(); | 131 | 1 | } |
_ZN2yb8internal15RunnableAdapterIPFyvEE3RunEv Line | Count | Source | 129 | 75.8k | R Run() { | 130 | 75.8k | return function_(); | 131 | 75.8k | } |
|
132 | | |
133 | | private: |
134 | | R (*function_)(); |
135 | | }; |
136 | | |
137 | | // Method: Arity 0. |
138 | | template <typename R, typename T> |
139 | | class RunnableAdapter<R(T::*)()> { |
140 | | public: |
141 | | typedef R (RunType)(T*); |
142 | | typedef base::true_type IsMethod; |
143 | | |
144 | | explicit RunnableAdapter(R(T::*method)()) |
145 | 196k | : method_(method) { |
146 | 196k | } _ZN2yb8internal15RunnableAdapterIMNS_3RefEFivEEC2ES4_ Line | Count | Source | 145 | 1 | : method_(method) { | 146 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_3log3LogEFvvEEC2ES5_ Line | Count | Source | 145 | 97.0k | : method_(method) { | 146 | 97.0k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master14CatalogManagerEFNS_6StatusEvEEC2ES6_ Line | Count | Source | 145 | 5.45k | : method_(method) { | 146 | 5.45k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master14CatalogManagerEFvvEEC2ES5_ Line | Count | Source | 145 | 2.01k | : method_(method) { | 146 | 2.01k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master6MasterEFvvEEC2ES5_ Line | Count | Source | 145 | 5.42k | : method_(method) { | 146 | 5.42k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server11HybridClockEFyvEEC2ES5_ Line | Count | Source | 145 | 34.2k | : method_(method) { | 146 | 34.2k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server11HybridClockEFxvEEC2ES5_ Line | Count | Source | 145 | 17.1k | : method_(method) { | 146 | 17.1k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server12LogicalClockEFyvEEC2ES5_ Line | Count | Source | 145 | 72 | : method_(method) { | 146 | 72 | } |
_ZN2yb8internal15RunnableAdapterIMNS_5debug8TraceLogEFvvEEC2ES5_ Line | Count | Source | 145 | 8 | : method_(method) { | 146 | 8 | } |
thread.cc:_ZN2yb8internal15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEC2ES5_ Line | Count | Source | 145 | 35.0k | : method_(method) { | 146 | 35.0k | } |
|
147 | | |
148 | 182k | R Run(T* object) { |
149 | 182k | return (object->*method_)(); |
150 | 182k | } _ZN2yb8internal15RunnableAdapterIMNS_3RefEFivEE3RunEPS2_ Line | Count | Source | 148 | 1 | R Run(T* object) { | 149 | 1 | return (object->*method_)(); | 150 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_3log3LogEFvvEE3RunEPS3_ Line | Count | Source | 148 | 97.0k | R Run(T* object) { | 149 | 97.0k | return (object->*method_)(); | 150 | 97.0k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master14CatalogManagerEFNS_6StatusEvEE3RunEPS3_ Line | Count | Source | 148 | 2.01k | R Run(T* object) { | 149 | 2.01k | return (object->*method_)(); | 150 | 2.01k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master14CatalogManagerEFvvEE3RunEPS3_ Line | Count | Source | 148 | 2.01k | R Run(T* object) { | 149 | 2.01k | return (object->*method_)(); | 150 | 2.01k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master6MasterEFvvEE3RunEPS3_ Line | Count | Source | 148 | 5.42k | R Run(T* object) { | 149 | 5.42k | return (object->*method_)(); | 150 | 5.42k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server11HybridClockEFyvEE3RunEPS3_ Line | Count | Source | 148 | 30.5k | R Run(T* object) { | 149 | 30.5k | return (object->*method_)(); | 150 | 30.5k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server11HybridClockEFxvEE3RunEPS3_ Line | Count | Source | 148 | 15.2k | R Run(T* object) { | 149 | 15.2k | return (object->*method_)(); | 150 | 15.2k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6server12LogicalClockEFyvEE3RunEPS3_ Line | Count | Source | 148 | 28 | R Run(T* object) { | 149 | 28 | return (object->*method_)(); | 150 | 28 | } |
_ZN2yb8internal15RunnableAdapterIMNS_5debug8TraceLogEFvvEE3RunEPS3_ Line | Count | Source | 148 | 8 | R Run(T* object) { | 149 | 8 | return (object->*method_)(); | 150 | 8 | } |
thread.cc:_ZN2yb8internal15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEE3RunEPS3_ Line | Count | Source | 148 | 30.3k | R Run(T* object) { | 149 | 30.3k | return (object->*method_)(); | 150 | 30.3k | } |
|
151 | | |
152 | | private: |
153 | | R (T::*method_)(); |
154 | | }; |
155 | | |
156 | | // Const Method: Arity 0. |
157 | | template <typename R, typename T> |
158 | | class RunnableAdapter<R(T::*)() const> { |
159 | | public: |
160 | | typedef R (RunType)(const T*); |
161 | | typedef base::true_type IsMethod; |
162 | | |
163 | | explicit RunnableAdapter(R(T::*method)() const) |
164 | 1 | : method_(method) { |
165 | 1 | } |
166 | | |
167 | 1 | R Run(const T* object) { |
168 | 1 | return (object->*method_)(); |
169 | 1 | } |
170 | | |
171 | | private: |
172 | | R (T::*method_)() const; |
173 | | }; |
174 | | |
175 | | // Function: Arity 1. |
176 | | template <typename R, typename A1> |
177 | | class RunnableAdapter<R(*)(A1)> { |
178 | | public: |
179 | | typedef R (RunType)(A1); |
180 | | |
181 | | explicit RunnableAdapter(R(*function)(A1)) |
182 | 105k | : function_(function) { |
183 | 105k | } _ZN2yb8internal15RunnableAdapterIPFvRKNS_6StatusEEEC2ES6_ Line | Count | Source | 182 | 191 | : function_(function) { | 183 | 191 | } |
_ZN2yb8internal15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEC2ES8_ Line | Count | Source | 182 | 29 | : function_(function) { | 183 | 29 | } |
_ZN2yb8internal15RunnableAdapterIPFxPiEEC2ES4_ Line | Count | Source | 182 | 3 | : function_(function) { | 183 | 3 | } |
_ZN2yb8internal15RunnableAdapterIPFxxEEC2ES3_ Line | Count | Source | 182 | 133 | : function_(function) { | 183 | 133 | } |
_ZN2yb8internal15RunnableAdapterIPFyyEEC2ES3_ Line | Count | Source | 182 | 286 | : function_(function) { | 183 | 286 | } |
_ZN2yb8internal15RunnableAdapterIPFyPKcEEC2ES5_ Line | Count | Source | 182 | 105k | : function_(function) { | 183 | 105k | } |
_ZN2yb8internal15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEEC2ES6_ Line | Count | Source | 182 | 3 | : function_(function) { | 183 | 3 | } |
|
184 | | |
185 | 91.9k | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { |
186 | 91.9k | return function_(CallbackForward(a1)); |
187 | 91.9k | } _ZN2yb8internal15RunnableAdapterIPFvRKNS_6StatusEEE3RunES4_ Line | Count | Source | 185 | 191 | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 191 | return function_(CallbackForward(a1)); | 187 | 191 | } |
_ZN2yb8internal15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEE3RunERKS6_ Line | Count | Source | 185 | 473 | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 473 | return function_(CallbackForward(a1)); | 187 | 473 | } |
_ZN2yb8internal15RunnableAdapterIPFxPiEE3RunERKS2_ Line | Count | Source | 185 | 12 | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 12 | return function_(CallbackForward(a1)); | 187 | 12 | } |
_ZN2yb8internal15RunnableAdapterIPFxxEE3RunERKx Line | Count | Source | 185 | 6 | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 6 | return function_(CallbackForward(a1)); | 187 | 6 | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIPFyyEE3RunERKy _ZN2yb8internal15RunnableAdapterIPFyPKcEE3RunERKS3_ Line | Count | Source | 185 | 91.0k | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 91.0k | return function_(CallbackForward(a1)); | 187 | 91.0k | } |
_ZN2yb8internal15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEE3RunERKS4_ Line | Count | Source | 185 | 303 | R Run(typename CallbackParamTraits<A1>::ForwardType a1) { | 186 | 303 | return function_(CallbackForward(a1)); | 187 | 303 | } |
|
188 | | |
189 | | private: |
190 | | R (*function_)(A1); |
191 | | }; |
192 | | |
193 | | // Method: Arity 1. |
194 | | template <typename R, typename T, typename A1> |
195 | | class RunnableAdapter<R(T::*)(A1)> { |
196 | | public: |
197 | | typedef R (RunType)(T*, A1); |
198 | | typedef base::true_type IsMethod; |
199 | | |
200 | | explicit RunnableAdapter(R(T::*method)(A1)) |
201 | 15.9M | : method_(method) { |
202 | 15.9M | } mt-log-test.cc:_ZN2yb8internal15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEC2ES9_ Line | Count | Source | 201 | 2.00k | : method_(method) { | 202 | 2.00k | } |
_ZN2yb8internal15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEEC2ES7_ Line | Count | Source | 201 | 854k | : method_(method) { | 202 | 854k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7PromiseIiEEFvRKiEEC2ES7_ Line | Count | Source | 201 | 1 | : method_(method) { | 202 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS2_22MajorityReplicatedDataEEEC2ES8_ Line | Count | Source | 201 | 15.1M | : method_(method) { | 202 | 15.1M | } |
|
203 | | |
204 | 16.0M | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1) { |
205 | 16.0M | return (object->*method_)(CallbackForward(a1)); |
206 | 16.0M | } mt-log-test.cc:_ZN2yb8internal15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEE3RunEPS4_S7_ Line | Count | Source | 204 | 2.00k | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1) { | 205 | 2.00k | return (object->*method_)(CallbackForward(a1)); | 206 | 2.00k | } |
_ZN2yb8internal15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEE3RunEPS2_S5_ Line | Count | Source | 204 | 853k | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1) { | 205 | 853k | return (object->*method_)(CallbackForward(a1)); | 206 | 853k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7PromiseIiEEFvRKiEE3RunEPS3_S5_ Line | Count | Source | 204 | 1 | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1) { | 205 | 1 | return (object->*method_)(CallbackForward(a1)); | 206 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS2_22MajorityReplicatedDataEEE3RunEPS3_S6_ Line | Count | Source | 204 | 15.1M | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1) { | 205 | 15.1M | return (object->*method_)(CallbackForward(a1)); | 206 | 15.1M | } |
|
207 | | |
208 | | private: |
209 | | R (T::*method_)(A1); |
210 | | }; |
211 | | |
212 | | // Const Method: Arity 1. |
213 | | template <typename R, typename T, typename A1> |
214 | | class RunnableAdapter<R(T::*)(A1) const> { |
215 | | public: |
216 | | typedef R (RunType)(const T*, A1); |
217 | | typedef base::true_type IsMethod; |
218 | | |
219 | | explicit RunnableAdapter(R(T::*method)(A1) const) |
220 | | : method_(method) { |
221 | | } |
222 | | |
223 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1) { |
224 | | return (object->*method_)(CallbackForward(a1)); |
225 | | } |
226 | | |
227 | | private: |
228 | | R (T::*method_)(A1) const; |
229 | | }; |
230 | | |
231 | | // Function: Arity 2. |
232 | | template <typename R, typename A1, typename A2> |
233 | | class RunnableAdapter<R(*)(A1, A2)> { |
234 | | public: |
235 | | typedef R (RunType)(A1, A2); |
236 | | |
237 | | explicit RunnableAdapter(R(*function)(A1, A2)) |
238 | 254 | : function_(function) { |
239 | 254 | } _ZN2yb8internal15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEC2ESD_ Line | Count | Source | 238 | 250 | : function_(function) { | 239 | 250 | } |
_ZN2yb8internal15RunnableAdapterIPFiiPKcEEC2ES5_ Line | Count | Source | 238 | 1 | : function_(function) { | 239 | 1 | } |
_ZN2yb8internal15RunnableAdapterIPFvPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcEEC2ESD_ Line | Count | Source | 238 | 2 | : function_(function) { | 239 | 2 | } |
_ZN2yb8internal15RunnableAdapterIPFviPiEEC2ES4_ Line | Count | Source | 238 | 1 | : function_(function) { | 239 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEC2ESA_ |
240 | | |
241 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
242 | 254 | typename CallbackParamTraits<A2>::ForwardType a2) { |
243 | 254 | return function_(CallbackForward(a1), CallbackForward(a2)); |
244 | 254 | } _ZN2yb8internal15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEE3RunES8_SB_ Line | Count | Source | 242 | 250 | typename CallbackParamTraits<A2>::ForwardType a2) { | 243 | 250 | return function_(CallbackForward(a1), CallbackForward(a2)); | 244 | 250 | } |
_ZN2yb8internal15RunnableAdapterIPFiiPKcEE3RunERKiRKS3_ Line | Count | Source | 242 | 1 | typename CallbackParamTraits<A2>::ForwardType a2) { | 243 | 1 | return function_(CallbackForward(a1), CallbackForward(a2)); | 244 | 1 | } |
_ZN2yb8internal15RunnableAdapterIPFvPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcEE3RunERKS9_RKSB_ Line | Count | Source | 242 | 2 | typename CallbackParamTraits<A2>::ForwardType a2) { | 243 | 2 | return function_(CallbackForward(a1), CallbackForward(a2)); | 244 | 2 | } |
_ZN2yb8internal15RunnableAdapterIPFviPiEE3RunERKiRKS2_ Line | Count | Source | 242 | 1 | typename CallbackParamTraits<A2>::ForwardType a2) { | 243 | 1 | return function_(CallbackForward(a1), CallbackForward(a2)); | 244 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEE3RunERKS5_S8_ |
245 | | |
246 | | private: |
247 | | R (*function_)(A1, A2); |
248 | | }; |
249 | | |
250 | | // Method: Arity 2. |
251 | | template <typename R, typename T, typename A1, typename A2> |
252 | | class RunnableAdapter<R(T::*)(A1, A2)> { |
253 | | public: |
254 | | typedef R (RunType)(T*, A1, A2); |
255 | | typedef base::true_type IsMethod; |
256 | | |
257 | | explicit RunnableAdapter(R(T::*method)(A1, A2)) |
258 | 13.2M | : method_(method) { |
259 | 13.2M | } _ZN2yb8internal15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEC2ESI_ Line | Count | Source | 258 | 4 | : method_(method) { | 259 | 4 | } |
_ZN2yb8internal15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS_6StatusEEEC2ESG_ Line | Count | Source | 258 | 1 | : method_(method) { | 259 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEC2ESB_ Line | Count | Source | 258 | 13.1M | : method_(method) { | 259 | 13.1M | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEC2ESI_ Line | Count | Source | 258 | 5.35k | : method_(method) { | 259 | 5.35k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEC2ESI_ Line | Count | Source | 258 | 83.2k | : method_(method) { | 259 | 83.2k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEC2ESI_ Line | Count | Source | 258 | 4 | : method_(method) { | 259 | 4 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEC2ESF_ Line | Count | Source | 258 | 16.9k | : method_(method) { | 259 | 16.9k | } |
_ZN2yb8internal15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEC2ESC_ Line | Count | Source | 258 | 29.0k | : method_(method) { | 259 | 29.0k | } |
_ZN2yb8internal15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEC2ESA_ Line | Count | Source | 258 | 23 | : method_(method) { | 259 | 23 | } |
|
260 | | |
261 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
262 | 18.0M | typename CallbackParamTraits<A2>::ForwardType a2) { |
263 | 18.0M | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); |
264 | 18.0M | } _ZN2yb8internal15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEE3RunEPS3_SC_RKSG_ Line | Count | Source | 262 | 11 | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 11 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 11 | } |
_ZN2yb8internal15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS_6StatusEEE3RunEPS2_SB_SE_ Line | Count | Source | 262 | 1 | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 1 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 1 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEE3RunEPS3_S6_S9_ Line | Count | Source | 262 | 13.1M | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 13.1M | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 13.1M | } |
_ZN2yb8internal15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEE3RunEPS3_SC_RKSG_ Line | Count | Source | 262 | 19.3k | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 19.3k | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 19.3k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEE3RunEPS3_SC_RKSG_ Line | Count | Source | 262 | 338k | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 338k | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 338k | } |
_ZN2yb8internal15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEE3RunEPS3_SC_RKSG_ Line | Count | Source | 262 | 12 | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 12 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 12 | } |
_ZN2yb8internal15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEE3RunEPS3_S6_SD_ Line | Count | Source | 262 | 4.53M | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 4.53M | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 4.53M | } |
_ZN2yb8internal15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEE3RunEPS4_S7_SA_ Line | Count | Source | 262 | 27.3k | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 27.3k | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 27.3k | } |
_ZN2yb8internal15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEE3RunEPS3_S8_RKb Line | Count | Source | 262 | 348 | typename CallbackParamTraits<A2>::ForwardType a2) { | 263 | 348 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); | 264 | 348 | } |
|
265 | | |
266 | | private: |
267 | | R (T::*method_)(A1, A2); |
268 | | }; |
269 | | |
270 | | // Const Method: Arity 2. |
271 | | template <typename R, typename T, typename A1, typename A2> |
272 | | class RunnableAdapter<R(T::*)(A1, A2) const> { |
273 | | public: |
274 | | typedef R (RunType)(const T*, A1, A2); |
275 | | typedef base::true_type IsMethod; |
276 | | |
277 | | explicit RunnableAdapter(R(T::*method)(A1, A2) const) |
278 | | : method_(method) { |
279 | | } |
280 | | |
281 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
282 | | typename CallbackParamTraits<A2>::ForwardType a2) { |
283 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2)); |
284 | | } |
285 | | |
286 | | private: |
287 | | R (T::*method_)(A1, A2) const; |
288 | | }; |
289 | | |
290 | | // Function: Arity 3. |
291 | | template <typename R, typename A1, typename A2, typename A3> |
292 | | class RunnableAdapter<R(*)(A1, A2, A3)> { |
293 | | public: |
294 | | typedef R (RunType)(A1, A2, A3); |
295 | | |
296 | | explicit RunnableAdapter(R(*function)(A1, A2, A3)) |
297 | 400k | : function_(function) { |
298 | 400k | } _ZN2yb8internal15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEC2ESB_ Line | Count | Source | 297 | 395k | : function_(function) { | 298 | 395k | } |
heartbeater.cc:_ZN2yb8internal15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEC2ESH_ Line | Count | Source | 297 | 5.72k | : function_(function) { | 298 | 5.72k | } |
|
299 | | |
300 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
301 | | typename CallbackParamTraits<A2>::ForwardType a2, |
302 | 401k | typename CallbackParamTraits<A3>::ForwardType a3) { |
303 | 401k | return function_(CallbackForward(a1), CallbackForward(a2), |
304 | 401k | CallbackForward(a3)); |
305 | 401k | } _ZN2yb8internal15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEE3RunERKS3_S6_S9_ Line | Count | Source | 302 | 395k | typename CallbackParamTraits<A3>::ForwardType a3) { | 303 | 395k | return function_(CallbackForward(a1), CallbackForward(a2), | 304 | 395k | CallbackForward(a3)); | 305 | 395k | } |
heartbeater.cc:_ZN2yb8internal15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEE3RunES9_SC_SF_ Line | Count | Source | 302 | 5.42k | typename CallbackParamTraits<A3>::ForwardType a3) { | 303 | 5.42k | return function_(CallbackForward(a1), CallbackForward(a2), | 304 | 5.42k | CallbackForward(a3)); | 305 | 5.42k | } |
|
306 | | |
307 | | private: |
308 | | R (*function_)(A1, A2, A3); |
309 | | }; |
310 | | |
311 | | // Method: Arity 3. |
312 | | template <typename R, typename T, typename A1, typename A2, typename A3> |
313 | | class RunnableAdapter<R(T::*)(A1, A2, A3)> { |
314 | | public: |
315 | | typedef R (RunType)(T*, A1, A2, A3); |
316 | | typedef base::true_type IsMethod; |
317 | | |
318 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3)) |
319 | 13.1M | : method_(method) { |
320 | 13.1M | } _ZN2yb8internal15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEC2ESI_ Line | Count | Source | 319 | 1 | : method_(method) { | 320 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEEC2ESH_ _ZN2yb8internal15RunnableAdapterIMNS_9consensus8LogCacheEFvxRKNS_8CallbackIFvRKNS_6StatusEEEES7_EEC2ESD_ Line | Count | Source | 319 | 13.1M | : method_(method) { | 320 | 13.1M | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEEC2ESH_ |
321 | | |
322 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
323 | | typename CallbackParamTraits<A2>::ForwardType a2, |
324 | 13.1M | typename CallbackParamTraits<A3>::ForwardType a3) { |
325 | 13.1M | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
326 | 13.1M | CallbackForward(a3)); |
327 | 13.1M | } _ZN2yb8internal15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEE3RunEPS3_RKS9_S7_SG_ Line | Count | Source | 324 | 1 | typename CallbackParamTraits<A3>::ForwardType a3) { | 325 | 1 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), | 326 | 1 | CallbackForward(a3)); | 327 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEE3RunEPS3_RKS9_S7_SF_ _ZN2yb8internal15RunnableAdapterIMNS_9consensus8LogCacheEFvxRKNS_8CallbackIFvRKNS_6StatusEEEES7_EE3RunEPS3_RKxSB_S7_ Line | Count | Source | 324 | 13.1M | typename CallbackParamTraits<A3>::ForwardType a3) { | 325 | 13.1M | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), | 326 | 13.1M | CallbackForward(a3)); | 327 | 13.1M | } |
Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEE3RunEPS3_RKS9_S7_SF_ |
328 | | |
329 | | private: |
330 | | R (T::*method_)(A1, A2, A3); |
331 | | }; |
332 | | |
333 | | // Const Method: Arity 3. |
334 | | template <typename R, typename T, typename A1, typename A2, typename A3> |
335 | | class RunnableAdapter<R(T::*)(A1, A2, A3) const> { |
336 | | public: |
337 | | typedef R (RunType)(const T*, A1, A2, A3); |
338 | | typedef base::true_type IsMethod; |
339 | | |
340 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3) const) |
341 | | : method_(method) { |
342 | | } |
343 | | |
344 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
345 | | typename CallbackParamTraits<A2>::ForwardType a2, |
346 | | typename CallbackParamTraits<A3>::ForwardType a3) { |
347 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
348 | | CallbackForward(a3)); |
349 | | } |
350 | | |
351 | | private: |
352 | | R (T::*method_)(A1, A2, A3) const; |
353 | | }; |
354 | | |
355 | | // Function: Arity 4. |
356 | | template <typename R, typename A1, typename A2, typename A3, typename A4> |
357 | | class RunnableAdapter<R(*)(A1, A2, A3, A4)> { |
358 | | public: |
359 | | typedef R (RunType)(A1, A2, A3, A4); |
360 | | |
361 | | explicit RunnableAdapter(R(*function)(A1, A2, A3, A4)) |
362 | 184k | : function_(function) { |
363 | 184k | } _ZN2yb8internal15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS2_EEC2ESC_ Line | Count | Source | 362 | 2.28k | : function_(function) { | 363 | 2.28k | } |
_ZN2yb8internal15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS8_EEC2ESG_ Line | Count | Source | 362 | 181k | : function_(function) { | 363 | 181k | } |
|
364 | | |
365 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
366 | | typename CallbackParamTraits<A2>::ForwardType a2, |
367 | | typename CallbackParamTraits<A3>::ForwardType a3, |
368 | 183k | typename CallbackParamTraits<A4>::ForwardType a4) { |
369 | 183k | return function_(CallbackForward(a1), CallbackForward(a2), |
370 | 183k | CallbackForward(a3), CallbackForward(a4)); |
371 | 183k | } _ZN2yb8internal15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS2_EE3RunERKS3_RKS5_S8_SA_ Line | Count | Source | 368 | 2.28k | typename CallbackParamTraits<A4>::ForwardType a4) { | 369 | 2.28k | return function_(CallbackForward(a1), CallbackForward(a2), | 370 | 2.28k | CallbackForward(a3), CallbackForward(a4)); | 371 | 2.28k | } |
_ZN2yb8internal15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS8_EE3RunERKS3_RKS9_SC_SE_ Line | Count | Source | 368 | 181k | typename CallbackParamTraits<A4>::ForwardType a4) { | 369 | 181k | return function_(CallbackForward(a1), CallbackForward(a2), | 370 | 181k | CallbackForward(a3), CallbackForward(a4)); | 371 | 181k | } |
|
372 | | |
373 | | private: |
374 | | R (*function_)(A1, A2, A3, A4); |
375 | | }; |
376 | | |
377 | | // Method: Arity 4. |
378 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
379 | | typename A4> |
380 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4)> { |
381 | | public: |
382 | | typedef R (RunType)(T*, A1, A2, A3, A4); |
383 | | typedef base::true_type IsMethod; |
384 | | |
385 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4)) |
386 | 0 | : method_(method) { |
387 | 0 | } Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS5_6vectorINS_6client11YBTableInfoENS9_ISH_EEEEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEEC2ES12_ Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS_6client11YBTableInfoEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEEC2ESZ_ |
388 | | |
389 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
390 | | typename CallbackParamTraits<A2>::ForwardType a2, |
391 | | typename CallbackParamTraits<A3>::ForwardType a3, |
392 | 0 | typename CallbackParamTraits<A4>::ForwardType a4) { |
393 | 0 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
394 | 0 | CallbackForward(a3), CallbackForward(a4)); |
395 | 0 | } Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS5_6vectorINS_6client11YBTableInfoENS9_ISH_EEEEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEE3RunEPS4_SD_SM_SX_S10_ Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS_6client11YBTableInfoEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEE3RunEPS4_SD_SJ_SU_SX_ |
396 | | |
397 | | private: |
398 | | R (T::*method_)(A1, A2, A3, A4); |
399 | | }; |
400 | | |
401 | | // Const Method: Arity 4. |
402 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
403 | | typename A4> |
404 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4) const> { |
405 | | public: |
406 | | typedef R (RunType)(const T*, A1, A2, A3, A4); |
407 | | typedef base::true_type IsMethod; |
408 | | |
409 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4) const) |
410 | | : method_(method) { |
411 | | } |
412 | | |
413 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
414 | | typename CallbackParamTraits<A2>::ForwardType a2, |
415 | | typename CallbackParamTraits<A3>::ForwardType a3, |
416 | | typename CallbackParamTraits<A4>::ForwardType a4) { |
417 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
418 | | CallbackForward(a3), CallbackForward(a4)); |
419 | | } |
420 | | |
421 | | private: |
422 | | R (T::*method_)(A1, A2, A3, A4) const; |
423 | | }; |
424 | | |
425 | | // Function: Arity 5. |
426 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
427 | | typename A5> |
428 | | class RunnableAdapter<R(*)(A1, A2, A3, A4, A5)> { |
429 | | public: |
430 | | typedef R (RunType)(A1, A2, A3, A4, A5); |
431 | | |
432 | | explicit RunnableAdapter(R(*function)(A1, A2, A3, A4, A5)) |
433 | | : function_(function) { |
434 | | } |
435 | | |
436 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
437 | | typename CallbackParamTraits<A2>::ForwardType a2, |
438 | | typename CallbackParamTraits<A3>::ForwardType a3, |
439 | | typename CallbackParamTraits<A4>::ForwardType a4, |
440 | | typename CallbackParamTraits<A5>::ForwardType a5) { |
441 | | return function_(CallbackForward(a1), CallbackForward(a2), |
442 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5)); |
443 | | } |
444 | | |
445 | | private: |
446 | | R (*function_)(A1, A2, A3, A4, A5); |
447 | | }; |
448 | | |
449 | | // Method: Arity 5. |
450 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
451 | | typename A4, typename A5> |
452 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5)> { |
453 | | public: |
454 | | typedef R (RunType)(T*, A1, A2, A3, A4, A5); |
455 | | typedef base::true_type IsMethod; |
456 | | |
457 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5)) |
458 | 0 | : method_(method) { |
459 | 0 | } |
460 | | |
461 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
462 | | typename CallbackParamTraits<A2>::ForwardType a2, |
463 | | typename CallbackParamTraits<A3>::ForwardType a3, |
464 | | typename CallbackParamTraits<A4>::ForwardType a4, |
465 | 0 | typename CallbackParamTraits<A5>::ForwardType a5) { |
466 | 0 | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
467 | 0 | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5)); |
468 | 0 | } |
469 | | |
470 | | private: |
471 | | R (T::*method_)(A1, A2, A3, A4, A5); |
472 | | }; |
473 | | |
474 | | // Const Method: Arity 5. |
475 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
476 | | typename A4, typename A5> |
477 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5) const> { |
478 | | public: |
479 | | typedef R (RunType)(const T*, A1, A2, A3, A4, A5); |
480 | | typedef base::true_type IsMethod; |
481 | | |
482 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5) const) |
483 | | : method_(method) { |
484 | | } |
485 | | |
486 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
487 | | typename CallbackParamTraits<A2>::ForwardType a2, |
488 | | typename CallbackParamTraits<A3>::ForwardType a3, |
489 | | typename CallbackParamTraits<A4>::ForwardType a4, |
490 | | typename CallbackParamTraits<A5>::ForwardType a5) { |
491 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
492 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5)); |
493 | | } |
494 | | |
495 | | private: |
496 | | R (T::*method_)(A1, A2, A3, A4, A5) const; |
497 | | }; |
498 | | |
499 | | // Function: Arity 6. |
500 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
501 | | typename A5, typename A6> |
502 | | class RunnableAdapter<R(*)(A1, A2, A3, A4, A5, A6)> { |
503 | | public: |
504 | | typedef R (RunType)(A1, A2, A3, A4, A5, A6); |
505 | | |
506 | | explicit RunnableAdapter(R(*function)(A1, A2, A3, A4, A5, A6)) |
507 | 42.9k | : function_(function) { |
508 | 42.9k | } |
509 | | |
510 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
511 | | typename CallbackParamTraits<A2>::ForwardType a2, |
512 | | typename CallbackParamTraits<A3>::ForwardType a3, |
513 | | typename CallbackParamTraits<A4>::ForwardType a4, |
514 | | typename CallbackParamTraits<A5>::ForwardType a5, |
515 | 42.9k | typename CallbackParamTraits<A6>::ForwardType a6) { |
516 | 42.9k | return function_(CallbackForward(a1), CallbackForward(a2), |
517 | 42.9k | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
518 | 42.9k | CallbackForward(a6)); |
519 | 42.9k | } |
520 | | |
521 | | private: |
522 | | R (*function_)(A1, A2, A3, A4, A5, A6); |
523 | | }; |
524 | | |
525 | | // Method: Arity 6. |
526 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
527 | | typename A4, typename A5, typename A6> |
528 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5, A6)> { |
529 | | public: |
530 | | typedef R (RunType)(T*, A1, A2, A3, A4, A5, A6); |
531 | | typedef base::true_type IsMethod; |
532 | | |
533 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5, A6)) |
534 | 329k | : method_(method) { |
535 | 329k | } |
536 | | |
537 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
538 | | typename CallbackParamTraits<A2>::ForwardType a2, |
539 | | typename CallbackParamTraits<A3>::ForwardType a3, |
540 | | typename CallbackParamTraits<A4>::ForwardType a4, |
541 | | typename CallbackParamTraits<A5>::ForwardType a5, |
542 | 329k | typename CallbackParamTraits<A6>::ForwardType a6) { |
543 | 329k | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
544 | 329k | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
545 | 329k | CallbackForward(a6)); |
546 | 329k | } |
547 | | |
548 | | private: |
549 | | R (T::*method_)(A1, A2, A3, A4, A5, A6); |
550 | | }; |
551 | | |
552 | | // Const Method: Arity 6. |
553 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
554 | | typename A4, typename A5, typename A6> |
555 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5, A6) const> { |
556 | | public: |
557 | | typedef R (RunType)(const T*, A1, A2, A3, A4, A5, A6); |
558 | | typedef base::true_type IsMethod; |
559 | | |
560 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5, A6) const) |
561 | | : method_(method) { |
562 | | } |
563 | | |
564 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
565 | | typename CallbackParamTraits<A2>::ForwardType a2, |
566 | | typename CallbackParamTraits<A3>::ForwardType a3, |
567 | | typename CallbackParamTraits<A4>::ForwardType a4, |
568 | | typename CallbackParamTraits<A5>::ForwardType a5, |
569 | | typename CallbackParamTraits<A6>::ForwardType a6) { |
570 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
571 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
572 | | CallbackForward(a6)); |
573 | | } |
574 | | |
575 | | private: |
576 | | R (T::*method_)(A1, A2, A3, A4, A5, A6) const; |
577 | | }; |
578 | | |
579 | | // Function: Arity 7. |
580 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
581 | | typename A5, typename A6, typename A7> |
582 | | class RunnableAdapter<R(*)(A1, A2, A3, A4, A5, A6, A7)> { |
583 | | public: |
584 | | typedef R (RunType)(A1, A2, A3, A4, A5, A6, A7); |
585 | | |
586 | | explicit RunnableAdapter(R(*function)(A1, A2, A3, A4, A5, A6, A7)) |
587 | 4.19k | : function_(function) { |
588 | 4.19k | } Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS7_mEEC2ESC_ _ZN2yb8internal15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS3_16YsckTabletServerEEERKNS9_INS_13BlockingQueueINS8_4pairINS_6SchemaENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSM_RKNS3_15ChecksumOptionsERKNS_6StatusEyEEC2ES12_ Line | Count | Source | 587 | 4.19k | : function_(function) { | 588 | 4.19k | } |
|
589 | | |
590 | | R Run(typename CallbackParamTraits<A1>::ForwardType a1, |
591 | | typename CallbackParamTraits<A2>::ForwardType a2, |
592 | | typename CallbackParamTraits<A3>::ForwardType a3, |
593 | | typename CallbackParamTraits<A4>::ForwardType a4, |
594 | | typename CallbackParamTraits<A5>::ForwardType a5, |
595 | | typename CallbackParamTraits<A6>::ForwardType a6, |
596 | 4.19k | typename CallbackParamTraits<A7>::ForwardType a7) { |
597 | 4.19k | return function_(CallbackForward(a1), CallbackForward(a2), |
598 | 4.19k | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
599 | 4.19k | CallbackForward(a6), CallbackForward(a7)); |
600 | 4.19k | } Unexecuted instantiation: _ZN2yb8internal15RunnableAdapterIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS7_mEE3RunERKS4_RKS5_RKS7_RKiRKSA_SJ_RKm _ZN2yb8internal15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS3_16YsckTabletServerEEERKNS9_INS_13BlockingQueueINS8_4pairINS_6SchemaENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSM_RKNS3_15ChecksumOptionsERKNS_6StatusEyEE3RunES7_SD_SS_SU_SX_S10_RKy Line | Count | Source | 596 | 4.19k | typename CallbackParamTraits<A7>::ForwardType a7) { | 597 | 4.19k | return function_(CallbackForward(a1), CallbackForward(a2), | 598 | 4.19k | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), | 599 | 4.19k | CallbackForward(a6), CallbackForward(a7)); | 600 | 4.19k | } |
|
601 | | |
602 | | private: |
603 | | R (*function_)(A1, A2, A3, A4, A5, A6, A7); |
604 | | }; |
605 | | |
606 | | // Method: Arity 7. |
607 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
608 | | typename A4, typename A5, typename A6, typename A7> |
609 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5, A6, A7)> { |
610 | | public: |
611 | | typedef R (RunType)(T*, A1, A2, A3, A4, A5, A6, A7); |
612 | | typedef base::true_type IsMethod; |
613 | | |
614 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5, A6, A7)) |
615 | | : method_(method) { |
616 | | } |
617 | | |
618 | | R Run(T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
619 | | typename CallbackParamTraits<A2>::ForwardType a2, |
620 | | typename CallbackParamTraits<A3>::ForwardType a3, |
621 | | typename CallbackParamTraits<A4>::ForwardType a4, |
622 | | typename CallbackParamTraits<A5>::ForwardType a5, |
623 | | typename CallbackParamTraits<A6>::ForwardType a6, |
624 | | typename CallbackParamTraits<A7>::ForwardType a7) { |
625 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
626 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
627 | | CallbackForward(a6), CallbackForward(a7)); |
628 | | } |
629 | | |
630 | | private: |
631 | | R (T::*method_)(A1, A2, A3, A4, A5, A6, A7); |
632 | | }; |
633 | | |
634 | | // Const Method: Arity 7. |
635 | | template <typename R, typename T, typename A1, typename A2, typename A3, |
636 | | typename A4, typename A5, typename A6, typename A7> |
637 | | class RunnableAdapter<R(T::*)(A1, A2, A3, A4, A5, A6, A7) const> { |
638 | | public: |
639 | | typedef R (RunType)(const T*, A1, A2, A3, A4, A5, A6, A7); |
640 | | typedef base::true_type IsMethod; |
641 | | |
642 | | explicit RunnableAdapter(R(T::*method)(A1, A2, A3, A4, A5, A6, A7) const) |
643 | | : method_(method) { |
644 | | } |
645 | | |
646 | | R Run(const T* object, typename CallbackParamTraits<A1>::ForwardType a1, |
647 | | typename CallbackParamTraits<A2>::ForwardType a2, |
648 | | typename CallbackParamTraits<A3>::ForwardType a3, |
649 | | typename CallbackParamTraits<A4>::ForwardType a4, |
650 | | typename CallbackParamTraits<A5>::ForwardType a5, |
651 | | typename CallbackParamTraits<A6>::ForwardType a6, |
652 | | typename CallbackParamTraits<A7>::ForwardType a7) { |
653 | | return (object->*method_)(CallbackForward(a1), CallbackForward(a2), |
654 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
655 | | CallbackForward(a6), CallbackForward(a7)); |
656 | | } |
657 | | |
658 | | private: |
659 | | R (T::*method_)(A1, A2, A3, A4, A5, A6, A7) const; |
660 | | }; |
661 | | |
662 | | |
663 | | // FunctionTraits<> |
664 | | // |
665 | | // Breaks a function signature apart into typedefs for easier introspection. |
666 | | template <typename Sig> |
667 | | struct FunctionTraits; |
668 | | |
669 | | template <typename R> |
670 | | struct FunctionTraits<R()> { |
671 | | typedef R ReturnType; |
672 | | }; |
673 | | |
674 | | template <typename R, typename A1> |
675 | | struct FunctionTraits<R(A1)> { |
676 | | typedef R ReturnType; |
677 | | typedef A1 A1Type; |
678 | | }; |
679 | | |
680 | | template <typename R, typename A1, typename A2> |
681 | | struct FunctionTraits<R(A1, A2)> { |
682 | | typedef R ReturnType; |
683 | | typedef A1 A1Type; |
684 | | typedef A2 A2Type; |
685 | | }; |
686 | | |
687 | | template <typename R, typename A1, typename A2, typename A3> |
688 | | struct FunctionTraits<R(A1, A2, A3)> { |
689 | | typedef R ReturnType; |
690 | | typedef A1 A1Type; |
691 | | typedef A2 A2Type; |
692 | | typedef A3 A3Type; |
693 | | }; |
694 | | |
695 | | template <typename R, typename A1, typename A2, typename A3, typename A4> |
696 | | struct FunctionTraits<R(A1, A2, A3, A4)> { |
697 | | typedef R ReturnType; |
698 | | typedef A1 A1Type; |
699 | | typedef A2 A2Type; |
700 | | typedef A3 A3Type; |
701 | | typedef A4 A4Type; |
702 | | }; |
703 | | |
704 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
705 | | typename A5> |
706 | | struct FunctionTraits<R(A1, A2, A3, A4, A5)> { |
707 | | typedef R ReturnType; |
708 | | typedef A1 A1Type; |
709 | | typedef A2 A2Type; |
710 | | typedef A3 A3Type; |
711 | | typedef A4 A4Type; |
712 | | typedef A5 A5Type; |
713 | | }; |
714 | | |
715 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
716 | | typename A5, typename A6> |
717 | | struct FunctionTraits<R(A1, A2, A3, A4, A5, A6)> { |
718 | | typedef R ReturnType; |
719 | | typedef A1 A1Type; |
720 | | typedef A2 A2Type; |
721 | | typedef A3 A3Type; |
722 | | typedef A4 A4Type; |
723 | | typedef A5 A5Type; |
724 | | typedef A6 A6Type; |
725 | | }; |
726 | | |
727 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
728 | | typename A5, typename A6, typename A7> |
729 | | struct FunctionTraits<R(A1, A2, A3, A4, A5, A6, A7)> { |
730 | | typedef R ReturnType; |
731 | | typedef A1 A1Type; |
732 | | typedef A2 A2Type; |
733 | | typedef A3 A3Type; |
734 | | typedef A4 A4Type; |
735 | | typedef A5 A5Type; |
736 | | typedef A6 A6Type; |
737 | | typedef A7 A7Type; |
738 | | }; |
739 | | |
740 | | |
741 | | // ForceVoidReturn<> |
742 | | // |
743 | | // Set of templates that support forcing the function return type to void. |
744 | | template <typename Sig> |
745 | | struct ForceVoidReturn; |
746 | | |
747 | | template <typename R> |
748 | | struct ForceVoidReturn<R()> { |
749 | | typedef void(RunType)(); |
750 | | }; |
751 | | |
752 | | template <typename R, typename A1> |
753 | | struct ForceVoidReturn<R(A1)> { |
754 | | typedef void(RunType)(A1); |
755 | | }; |
756 | | |
757 | | template <typename R, typename A1, typename A2> |
758 | | struct ForceVoidReturn<R(A1, A2)> { |
759 | | typedef void(RunType)(A1, A2); |
760 | | }; |
761 | | |
762 | | template <typename R, typename A1, typename A2, typename A3> |
763 | | struct ForceVoidReturn<R(A1, A2, A3)> { |
764 | | typedef void(RunType)(A1, A2, A3); |
765 | | }; |
766 | | |
767 | | template <typename R, typename A1, typename A2, typename A3, typename A4> |
768 | | struct ForceVoidReturn<R(A1, A2, A3, A4)> { |
769 | | typedef void(RunType)(A1, A2, A3, A4); |
770 | | }; |
771 | | |
772 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
773 | | typename A5> |
774 | | struct ForceVoidReturn<R(A1, A2, A3, A4, A5)> { |
775 | | typedef void(RunType)(A1, A2, A3, A4, A5); |
776 | | }; |
777 | | |
778 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
779 | | typename A5, typename A6> |
780 | | struct ForceVoidReturn<R(A1, A2, A3, A4, A5, A6)> { |
781 | | typedef void(RunType)(A1, A2, A3, A4, A5, A6); |
782 | | }; |
783 | | |
784 | | template <typename R, typename A1, typename A2, typename A3, typename A4, |
785 | | typename A5, typename A6, typename A7> |
786 | | struct ForceVoidReturn<R(A1, A2, A3, A4, A5, A6, A7)> { |
787 | | typedef void(RunType)(A1, A2, A3, A4, A5, A6, A7); |
788 | | }; |
789 | | |
790 | | |
791 | | // FunctorTraits<> |
792 | | // |
793 | | // See description at top of file. |
794 | | template <typename T> |
795 | | struct FunctorTraits { |
796 | | typedef RunnableAdapter<T> RunnableType; |
797 | | typedef typename RunnableType::RunType RunType; |
798 | | }; |
799 | | |
800 | | template <typename T> |
801 | | struct FunctorTraits<IgnoreResultHelper<T> > { |
802 | | typedef typename FunctorTraits<T>::RunnableType RunnableType; |
803 | | typedef typename ForceVoidReturn< |
804 | | typename RunnableType::RunType>::RunType RunType; |
805 | | }; |
806 | | |
807 | | template <typename T> |
808 | | struct FunctorTraits<Callback<T> > { |
809 | | typedef Callback<T> RunnableType; |
810 | | typedef typename Callback<T>::RunType RunType; |
811 | | }; |
812 | | |
813 | | |
814 | | // MakeRunnable<> |
815 | | // |
816 | | // Converts a passed in functor to a RunnableType using type inference. |
817 | | |
818 | | template <typename T> |
819 | 43.7M | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { |
820 | 43.7M | return RunnableAdapter<T>(t); |
821 | 43.7M | } _ZN2yb8internal12MakeRunnableIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSF_ Line | Count | Source | 819 | 250 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 250 | return RunnableAdapter<T>(t); | 821 | 250 | } |
_ZN2yb8internal12MakeRunnableIPFvRKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS8_ Line | Count | Source | 819 | 191 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 191 | return RunnableAdapter<T>(t); | 821 | 191 | } |
mt-log-test.cc:_ZN2yb8internal12MakeRunnableIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSB_ Line | Count | Source | 819 | 2.00k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 2.00k | return RunnableAdapter<T>(t); | 821 | 2.00k | } |
_ZN2yb8internal12MakeRunnableIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSA_ Line | Count | Source | 819 | 29 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 29 | return RunnableAdapter<T>(t); | 821 | 29 | } |
_ZN2yb8internal12MakeRunnableIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSD_ Line | Count | Source | 819 | 395k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 395k | return RunnableAdapter<T>(t); | 821 | 395k | } |
_ZN2yb8internal12MakeRunnableIMNS_12SynchronizerEFvRKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS9_ Line | Count | Source | 819 | 854k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 854k | return RunnableAdapter<T>(t); | 821 | 854k | } |
_ZN2yb8internal12MakeRunnableIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSK_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSJ_ _ZN2yb8internal12MakeRunnableIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSK_ Line | Count | Source | 819 | 4 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 4 | return RunnableAdapter<T>(t); | 821 | 4 | } |
_ZN2yb8internal12MakeRunnableIPFivEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS5_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIMNS_3RefEFivEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS6_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIPFiiPKcEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIMNS_12RefCountableEKFvvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS6_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSI_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIPFxPiEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS6_ Line | Count | Source | 819 | 3 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 3 | return RunnableAdapter<T>(t); | 821 | 3 | } |
_ZN2yb8internal12MakeRunnableIPFxxEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS5_ Line | Count | Source | 819 | 133 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 133 | return RunnableAdapter<T>(t); | 821 | 133 | } |
_ZN2yb8internal12MakeRunnableIPFvPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSF_ Line | Count | Source | 819 | 2 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 2 | return RunnableAdapter<T>(t); | 821 | 2 | } |
_ZN2yb8internal12MakeRunnableIPFviPiEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS6_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIMNS_7PromiseIiEEFvRKiEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS9_ Line | Count | Source | 819 | 1 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 1 | return RunnableAdapter<T>(t); | 821 | 1 | } |
_ZN2yb8internal12MakeRunnableIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSD_ Line | Count | Source | 819 | 13.1M | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 13.1M | return RunnableAdapter<T>(t); | 821 | 13.1M | } |
_ZN2yb8internal12MakeRunnableIMNS_9consensus16PeerMessageQueueEFvRKNS2_22MajorityReplicatedDataEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSA_ Line | Count | Source | 819 | 15.1M | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 15.1M | return RunnableAdapter<T>(t); | 821 | 15.1M | } |
_ZN2yb8internal12MakeRunnableIMNS_9consensus8LogCacheEFvxRKNS_8CallbackIFvRKNS_6StatusEEEES7_EEENS0_13FunctorTraitsIT_E12RunnableTypeERKSF_ Line | Count | Source | 819 | 13.1M | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 13.1M | return RunnableAdapter<T>(t); | 821 | 13.1M | } |
_ZN2yb8internal12MakeRunnableIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS2_EEENS0_13FunctorTraitsIT_E12RunnableTypeERKSE_ Line | Count | Source | 819 | 2.28k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 2.28k | return RunnableAdapter<T>(t); | 821 | 2.28k | } |
_ZN2yb8internal12MakeRunnableIMNS_3log3LogEFvvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 96.9k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 96.9k | return RunnableAdapter<T>(t); | 821 | 96.9k | } |
_ZN2yb8internal12MakeRunnableIMNS_6master14CatalogManagerEFNS_6StatusEvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS8_ Line | Count | Source | 819 | 5.45k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 5.45k | return RunnableAdapter<T>(t); | 821 | 5.45k | } |
_ZN2yb8internal12MakeRunnableIMNS_6master14CatalogManagerEFvvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 2.01k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 2.01k | return RunnableAdapter<T>(t); | 821 | 2.01k | } |
_ZN2yb8internal12MakeRunnableIMNS_6master6MasterEFvvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 5.42k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 5.42k | return RunnableAdapter<T>(t); | 821 | 5.42k | } |
_ZN2yb8internal12MakeRunnableIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSK_ Line | Count | Source | 819 | 5.35k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 5.35k | return RunnableAdapter<T>(t); | 821 | 5.35k | } |
Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS5_6vectorINS_6client11YBTableInfoENS9_ISH_EEEEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS14_ Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS5_6vectorINS_6client11YBTableInfoENS9_ISH_EEEEEESD_RKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS14_ Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_10shared_ptrINS_6client11YBTableInfoEEERKNS5_13unordered_mapISB_SB_NS5_4hashISB_EENS5_8equal_toISB_EENS9_INS5_4pairISC_SB_EEEEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS11_ _ZN2yb8internal12MakeRunnableIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS2_19StatementParametersEPKNS2_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS4_10shared_ptrINS2_14ExecutedResultEEEEEESM_SR_EEENS0_13FunctorTraitsIT_E12RunnableTypeERKSX_ Line | Count | Source | 819 | 329k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 329k | return RunnableAdapter<T>(t); | 821 | 329k | } |
Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES7_RKNSt3__110shared_ptrINS2_14ExecutedResultEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSJ_ _ZN2yb8internal12MakeRunnableIMNS_6server11HybridClockEFyvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 34.2k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 34.2k | return RunnableAdapter<T>(t); | 821 | 34.2k | } |
_ZN2yb8internal12MakeRunnableIPFyyEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS5_ Line | Count | Source | 819 | 286 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 286 | return RunnableAdapter<T>(t); | 821 | 286 | } |
_ZN2yb8internal12MakeRunnableIMNS_6server11HybridClockEFxvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 17.1k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 17.1k | return RunnableAdapter<T>(t); | 821 | 17.1k | } |
_ZN2yb8internal12MakeRunnableIMNS_6server12LogicalClockEFyvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 72 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 72 | return RunnableAdapter<T>(t); | 821 | 72 | } |
_ZN2yb8internal12MakeRunnableIPFyPKcEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 105k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 105k | return RunnableAdapter<T>(t); | 821 | 105k | } |
heartbeater.cc:_ZN2yb8internal12MakeRunnableIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSJ_ Line | Count | Source | 819 | 5.72k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 5.72k | return RunnableAdapter<T>(t); | 821 | 5.72k | } |
_ZN2yb8internal12MakeRunnableIPFvPNS_6tablet14AbstractTabletENSt3__16chrono10time_pointINS_15CoarseMonoClockENS6_8durationIxNS5_5ratioILl1ELl1000000000EEEEEEERKNS_14ReadHybridTimeERKNS_18RedisReadRequestPBEPNS_15RedisResponsePBERKNS5_8functionIFvRKNS_6StatusEEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSX_ Line | Count | Source | 819 | 42.9k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 42.9k | return RunnableAdapter<T>(t); | 821 | 42.9k | } |
_ZN2yb8internal12MakeRunnableIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSK_ Line | Count | Source | 819 | 83.1k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 83.1k | return RunnableAdapter<T>(t); | 821 | 83.1k | } |
_ZN2yb8internal12MakeRunnableIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10shared_ptrINS_9consensus18StateChangeContextEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSK_ Line | Count | Source | 819 | 4 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 4 | return RunnableAdapter<T>(t); | 821 | 4 | } |
_ZN2yb8internal12MakeRunnableIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSH_ Line | Count | Source | 819 | 16.9k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 16.9k | return RunnableAdapter<T>(t); | 821 | 16.9k | } |
_ZN2yb8internal12MakeRunnableIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS8_EEENS0_13FunctorTraitsIT_E12RunnableTypeERKSI_ Line | Count | Source | 819 | 181k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 181k | return RunnableAdapter<T>(t); | 821 | 181k | } |
Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS7_mEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSE_ _ZN2yb8internal12MakeRunnableIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSE_ Line | Count | Source | 819 | 28.8k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 28.8k | return RunnableAdapter<T>(t); | 821 | 28.8k | } |
_ZN2yb8internal12MakeRunnableIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSC_ Line | Count | Source | 819 | 23 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 23 | return RunnableAdapter<T>(t); | 821 | 23 | } |
_ZN2yb8internal12MakeRunnableIPFvPNS_5debug15TraceBucketDataEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS8_ Line | Count | Source | 819 | 3 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 3 | return RunnableAdapter<T>(t); | 821 | 3 | } |
_ZN2yb8internal12MakeRunnableIMNS_5debug8TraceLogEFvvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 8 | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 8 | return RunnableAdapter<T>(t); | 821 | 8 | } |
_ZN2yb8internal12MakeRunnableIPFyvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS5_ Line | Count | Source | 819 | 87.5k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 87.5k | return RunnableAdapter<T>(t); | 821 | 87.5k | } |
thread.cc:_ZN2yb8internal12MakeRunnableIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS7_ Line | Count | Source | 819 | 35.0k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 35.0k | return RunnableAdapter<T>(t); | 821 | 35.0k | } |
Unexecuted instantiation: _ZN2yb8internal12MakeRunnableIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEENS0_13FunctorTraitsIT_E12RunnableTypeERKSC_ _ZN2yb8internal12MakeRunnableIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS3_16YsckTabletServerEEERKNS9_INS_13BlockingQueueINS8_4pairINS_6SchemaENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSM_RKNS3_15ChecksumOptionsERKNS_6StatusEyEEENS0_13FunctorTraitsIT_E12RunnableTypeERKS14_ Line | Count | Source | 819 | 4.19k | typename FunctorTraits<T>::RunnableType MakeRunnable(const T& t) { | 820 | 4.19k | return RunnableAdapter<T>(t); | 821 | 4.19k | } |
|
822 | | |
823 | | template <typename T> |
824 | | typename FunctorTraits<T>::RunnableType |
825 | | MakeRunnable(const IgnoreResultHelper<T>& t) { |
826 | | return MakeRunnable(t.functor_); |
827 | | } |
828 | | |
829 | | template <typename T> |
830 | | const typename FunctorTraits<Callback<T> >::RunnableType& |
831 | | MakeRunnable(const Callback<T>& t) { |
832 | | DCHECK(!t.is_null()); |
833 | | return t; |
834 | | } |
835 | | |
836 | | |
837 | | // InvokeHelper<> |
838 | | // |
839 | | // There are 3 logical InvokeHelper<> specializations: normal, void-return, |
840 | | // WeakCalls. |
841 | | // |
842 | | // The normal type just calls the underlying runnable. |
843 | | // |
844 | | // We need a InvokeHelper to handle void return types in order to support |
845 | | // IgnoreResult(). Normally, if the Runnable's RunType had a void return, |
846 | | // the template system would just accept "return functor.Run()" ignoring |
847 | | // the fact that a void function is being used with return. This piece of |
848 | | // sugar breaks though when the Runnable's RunType is not void. Thus, we |
849 | | // need a partial specialization to change the syntax to drop the "return" |
850 | | // from the invocation call. |
851 | | // |
852 | | // WeakCalls similarly need special syntax that is applied to the first |
853 | | // argument to check if they should no-op themselves. |
854 | | template <bool IsWeakCall, typename ReturnType, typename Runnable, |
855 | | typename ArgsType> |
856 | | struct InvokeHelper; |
857 | | |
858 | | template <typename ReturnType, typename Runnable> |
859 | | struct InvokeHelper<false, ReturnType, Runnable, |
860 | | void()> { |
861 | 75.8k | static ReturnType MakeItSo(Runnable runnable) { |
862 | 75.8k | return runnable.Run(); |
863 | 75.8k | } _ZN2yb8internal12InvokeHelperILb0EiNS0_15RunnableAdapterIPFivEEEFvvEE8MakeItSoES5_ Line | Count | Source | 861 | 1 | static ReturnType MakeItSo(Runnable runnable) { | 862 | 1 | return runnable.Run(); | 863 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIPFyvEEEFvvEE8MakeItSoES5_ Line | Count | Source | 861 | 75.8k | static ReturnType MakeItSo(Runnable runnable) { | 862 | 75.8k | return runnable.Run(); | 863 | 75.8k | } |
|
864 | | }; |
865 | | |
866 | | template <typename Runnable> |
867 | | struct InvokeHelper<false, void, Runnable, |
868 | | void()> { |
869 | | static void MakeItSo(Runnable runnable) { |
870 | | runnable.Run(); |
871 | | } |
872 | | }; |
873 | | |
874 | | template <typename ReturnType, typename Runnable,typename A1> |
875 | | struct InvokeHelper<false, ReturnType, Runnable, |
876 | | void(A1)> { |
877 | 169k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { |
878 | 169k | return runnable.Run(CallbackForward(a1)); |
879 | 169k | } _ZN2yb8internal12InvokeHelperILb0EiNS0_15RunnableAdapterIMNS_3RefEFivEEEFvPS3_EE8MakeItSoES6_S7_ Line | Count | Source | 877 | 1 | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 1 | return runnable.Run(CallbackForward(a1)); | 879 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0ExNS0_15RunnableAdapterIPFxPiEEEFvS3_EE8MakeItSoES6_S3_ Line | Count | Source | 877 | 12 | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 12 | return runnable.Run(CallbackForward(a1)); | 879 | 12 | } |
_ZN2yb8internal12InvokeHelperILb0ExNS0_15RunnableAdapterIPFxxEEEFvRKxEE8MakeItSoES5_S7_ Line | Count | Source | 877 | 6 | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 6 | return runnable.Run(CallbackForward(a1)); | 879 | 6 | } |
_ZN2yb8internal12InvokeHelperILb0ENS_6StatusENS0_15RunnableAdapterIMNS_6master14CatalogManagerEFS2_vEEEFvPS5_EE8MakeItSoES8_S9_ Line | Count | Source | 877 | 2.01k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 2.01k | return runnable.Run(CallbackForward(a1)); | 879 | 2.01k | } |
_ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIMNS_6server11HybridClockEFyvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 877 | 30.5k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 30.5k | return runnable.Run(CallbackForward(a1)); | 879 | 30.5k | } |
Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIPFyyEEEFvRKyEE8MakeItSoES5_S7_ _ZN2yb8internal12InvokeHelperILb0ExNS0_15RunnableAdapterIMNS_6server11HybridClockEFxvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 877 | 15.2k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 15.2k | return runnable.Run(CallbackForward(a1)); | 879 | 15.2k | } |
_ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIMNS_6server12LogicalClockEFyvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 877 | 28 | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 28 | return runnable.Run(CallbackForward(a1)); | 879 | 28 | } |
_ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIPFyPKcEEEFvS4_EE8MakeItSoES7_S4_ Line | Count | Source | 877 | 91.0k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 91.0k | return runnable.Run(CallbackForward(a1)); | 879 | 91.0k | } |
thread.cc:_ZN2yb8internal12InvokeHelperILb0EyNS0_15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 877 | 30.3k | static ReturnType MakeItSo(Runnable runnable, A1 a1) { | 878 | 30.3k | return runnable.Run(CallbackForward(a1)); | 879 | 30.3k | } |
|
880 | | }; |
881 | | |
882 | | template <typename Runnable,typename A1> |
883 | | struct InvokeHelper<false, void, Runnable, |
884 | | void(A1)> { |
885 | 105k | static void MakeItSo(Runnable runnable, A1 a1) { |
886 | 105k | runnable.Run(CallbackForward(a1)); |
887 | 105k | } _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvRKNS_6StatusEEEES6_E8MakeItSoES8_S5_ Line | Count | Source | 885 | 191 | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 191 | runnable.Run(CallbackForward(a1)); | 887 | 191 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEEFvRKS7_EE8MakeItSoESA_SC_ Line | Count | Source | 885 | 473 | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 473 | runnable.Run(CallbackForward(a1)); | 887 | 473 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_12RefCountableEKFvvEEEFvRKPS3_EE8MakeItSoES6_S9_ Line | Count | Source | 885 | 1 | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 1 | runnable.Run(CallbackForward(a1)); | 887 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_3log3LogEFvvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 885 | 97.0k | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 97.0k | runnable.Run(CallbackForward(a1)); | 887 | 97.0k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master14CatalogManagerEFvvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 885 | 2.01k | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 2.01k | runnable.Run(CallbackForward(a1)); | 887 | 2.01k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master6MasterEFvvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 885 | 5.42k | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 5.42k | runnable.Run(CallbackForward(a1)); | 887 | 5.42k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEEEFvRKS5_EE8MakeItSoES8_SA_ Line | Count | Source | 885 | 303 | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 303 | runnable.Run(CallbackForward(a1)); | 887 | 303 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_5debug8TraceLogEFvvEEEFvPS4_EE8MakeItSoES7_S8_ Line | Count | Source | 885 | 8 | static void MakeItSo(Runnable runnable, A1 a1) { | 886 | 8 | runnable.Run(CallbackForward(a1)); | 887 | 8 | } |
|
888 | | }; |
889 | | |
890 | | template <typename ReturnType, typename Runnable,typename A1, typename A2> |
891 | | struct InvokeHelper<false, ReturnType, Runnable, |
892 | | void(A1, A2)> { |
893 | 1 | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2) { |
894 | 1 | return runnable.Run(CallbackForward(a1), CallbackForward(a2)); |
895 | 1 | } |
896 | | }; |
897 | | |
898 | | template <typename Runnable,typename A1, typename A2> |
899 | | struct InvokeHelper<false, void, Runnable, |
900 | | void(A1, A2)> { |
901 | 16.0M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { |
902 | 16.0M | runnable.Run(CallbackForward(a1), CallbackForward(a2)); |
903 | 16.0M | } _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEESD_E8MakeItSoESF_S9_SC_ Line | Count | Source | 901 | 250 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 250 | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 250 | } |
mt-log-test.cc:_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEEFvRKPS5_S8_EE8MakeItSoESB_SE_S8_ Line | Count | Source | 901 | 2.00k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 2.00k | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 2.00k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEEEFvPS3_S6_EE8MakeItSoES9_SA_S6_ Line | Count | Source | 901 | 853k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 853k | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 853k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKcEEEFvRKSA_SC_EE8MakeItSoESF_SH_SC_ Line | Count | Source | 901 | 2 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 2 | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 2 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFviPiEEEFvRKiRKS3_EE8MakeItSoES6_S8_SA_ Line | Count | Source | 901 | 1 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 1 | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_7PromiseIiEEFvRKiEEEFvPS4_S6_EE8MakeItSoES9_SA_S6_ Line | Count | Source | 901 | 1 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 1 | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS3_22MajorityReplicatedDataEEEEFvPS4_S7_EE8MakeItSoESA_SB_S7_ Line | Count | Source | 901 | 15.1M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2) { | 902 | 15.1M | runnable.Run(CallbackForward(a1), CallbackForward(a2)); | 903 | 15.1M | } |
Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEEFvRKS6_S9_EE8MakeItSoESC_SE_S9_ |
904 | | }; |
905 | | |
906 | | template <typename ReturnType, typename Runnable,typename A1, typename A2, |
907 | | typename A3> |
908 | | struct InvokeHelper<false, ReturnType, Runnable, |
909 | | void(A1, A2, A3)> { |
910 | | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { |
911 | | return runnable.Run(CallbackForward(a1), CallbackForward(a2), |
912 | | CallbackForward(a3)); |
913 | | } |
914 | | }; |
915 | | |
916 | | template <typename Runnable,typename A1, typename A2, typename A3> |
917 | | struct InvokeHelper<false, void, Runnable, |
918 | | void(A1, A2, A3)> { |
919 | 18.4M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { |
920 | 18.4M | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); |
921 | 18.4M | } _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEEFvRKS4_S7_SA_EE8MakeItSoESD_SF_S7_SA_ Line | Count | Source | 919 | 395k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 395k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 395k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_RKSH_EE8MakeItSoESK_SL_SD_SN_ Line | Count | Source | 919 | 11 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 11 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 11 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS_6StatusEEEEFvPNS_43FailureDetectorTest_TestDetectsFailure_TestESC_SF_EE8MakeItSoESI_SK_SC_SF_ Line | Count | Source | 919 | 1 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 1 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 1 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEEFvPS4_S7_SA_EE8MakeItSoESD_SE_S7_SA_ Line | Count | Source | 919 | 13.1M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 13.1M | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 13.1M | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_RKSH_EE8MakeItSoESK_SL_SD_SN_ Line | Count | Source | 919 | 19.3k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 19.3k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 19.3k | } |
heartbeater.cc:_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEESH_E8MakeItSoESJ_SA_SD_SG_ Line | Count | Source | 919 | 5.42k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 5.42k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 5.42k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_RKSH_EE8MakeItSoESK_SL_SD_SN_ Line | Count | Source | 919 | 338k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 338k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 338k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_RKSH_EE8MakeItSoESK_SL_SD_SN_ Line | Count | Source | 919 | 12 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 12 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 12 | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS4_S7_SE_EE8MakeItSoESH_SI_S7_SE_ Line | Count | Source | 919 | 4.53M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 4.53M | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 4.53M | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEEFvPS5_S8_SB_EE8MakeItSoESE_SF_S8_SB_ Line | Count | Source | 919 | 27.3k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 27.3k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 27.3k | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEEFvPS4_S9_RKbEE8MakeItSoESC_SD_S9_SF_ Line | Count | Source | 919 | 348 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3) { | 920 | 348 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3)); | 921 | 348 | } |
|
922 | | }; |
923 | | |
924 | | template <typename ReturnType, typename Runnable,typename A1, typename A2, |
925 | | typename A3, typename A4> |
926 | | struct InvokeHelper<false, ReturnType, Runnable, |
927 | | void(A1, A2, A3, A4)> { |
928 | | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { |
929 | | return runnable.Run(CallbackForward(a1), CallbackForward(a2), |
930 | | CallbackForward(a3), CallbackForward(a4)); |
931 | | } |
932 | | }; |
933 | | |
934 | | template <typename Runnable,typename A1, typename A2, typename A3, typename A4> |
935 | | struct InvokeHelper<false, void, Runnable, |
936 | | void(A1, A2, A3, A4)> { |
937 | 13.3M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { |
938 | 13.3M | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), |
939 | 13.3M | CallbackForward(a4)); |
940 | 13.3M | } _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPNS3_49SystemTableFaultTolerance_TestFaultTolerance_TestERKSA_S8_SH_EE8MakeItSoESK_SM_SO_S8_SH_ Line | Count | Source | 937 | 1 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { | 938 | 1 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 939 | 1 | CallbackForward(a4)); | 940 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_RKSA_S8_SG_EE8MakeItSoESJ_SK_SM_S8_SG_ _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_9consensus8LogCacheEFvxRKNS_8CallbackIFvRKNS_6StatusEEEES8_EEEFvPS4_RKxSC_S8_EE8MakeItSoESF_SG_SI_SC_S8_ Line | Count | Source | 937 | 13.1M | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { | 938 | 13.1M | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 939 | 13.1M | CallbackForward(a4)); | 940 | 13.1M | } |
_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS3_EEEFvRKS4_RKS6_S9_SB_EE8MakeItSoESE_SG_SI_S9_SB_ Line | Count | Source | 937 | 2.28k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { | 938 | 2.28k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 939 | 2.28k | CallbackForward(a4)); | 940 | 2.28k | } |
Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_RKSA_S8_SG_EE8MakeItSoESJ_SK_SM_S8_SG_ _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS9_EEEFvRKS4_RKSA_SD_SF_EE8MakeItSoESI_SK_SM_SD_SF_ Line | Count | Source | 937 | 181k | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4) { | 938 | 181k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 939 | 181k | CallbackForward(a4)); | 940 | 181k | } |
|
941 | | }; |
942 | | |
943 | | template <typename ReturnType, typename Runnable,typename A1, typename A2, |
944 | | typename A3, typename A4, typename A5> |
945 | | struct InvokeHelper<false, ReturnType, Runnable, |
946 | | void(A1, A2, A3, A4, A5)> { |
947 | | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, |
948 | | A5 a5) { |
949 | | return runnable.Run(CallbackForward(a1), CallbackForward(a2), |
950 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5)); |
951 | | } |
952 | | }; |
953 | | |
954 | | template <typename Runnable,typename A1, typename A2, typename A3, typename A4, |
955 | | typename A5> |
956 | | struct InvokeHelper<false, void, Runnable, |
957 | | void(A1, A2, A3, A4, A5)> { |
958 | 0 | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { |
959 | 0 | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), |
960 | 0 | CallbackForward(a4), CallbackForward(a5)); |
961 | 0 | } Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SY_S11_EE8MakeItSoES14_S15_SE_SN_SY_S11_ Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS_6client11YBTableInfoEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SK_SV_SY_EE8MakeItSoES11_S12_SE_SK_SV_SY_ |
962 | | }; |
963 | | |
964 | | template <typename ReturnType, typename Runnable,typename A1, typename A2, |
965 | | typename A3, typename A4, typename A5, typename A6> |
966 | | struct InvokeHelper<false, ReturnType, Runnable, |
967 | | void(A1, A2, A3, A4, A5, A6)> { |
968 | | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, |
969 | | A5 a5, A6 a6) { |
970 | | return runnable.Run(CallbackForward(a1), CallbackForward(a2), |
971 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
972 | | CallbackForward(a6)); |
973 | | } |
974 | | }; |
975 | | |
976 | | template <typename Runnable,typename A1, typename A2, typename A3, typename A4, |
977 | | typename A5, typename A6> |
978 | | struct InvokeHelper<false, void, Runnable, |
979 | | void(A1, A2, A3, A4, A5, A6)> { |
980 | | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, |
981 | 42.9k | A6 a6) { |
982 | 42.9k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), |
983 | 42.9k | CallbackForward(a4), CallbackForward(a5), CallbackForward(a6)); |
984 | 42.9k | } Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEESE_RKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SE_SY_S11_EE8MakeItSoES14_S15_SE_SN_SE_SY_S11_ read_query.cc:_ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_6tablet14AbstractTabletENSt3__16chrono10time_pointINS_15CoarseMonoClockENS7_8durationIxNS6_5ratioILl1ELl1000000000EEEEEEERKNS_14ReadHybridTimeERKNS_18RedisReadRequestPBEPNS_15RedisResponsePBERKNS6_8functionIFvRKNS_6StatusEEEEEEEFvS5_RKSE_SH_SK_SM_RKZNS_7tserver12_GLOBAL__N_19ReadQuery10DoReadImplEvE3$_1EE8MakeItSoESX_S5_SZ_SH_SK_SM_S15_ Line | Count | Source | 981 | 42.9k | A6 a6) { | 982 | 42.9k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 983 | 42.9k | CallbackForward(a4), CallbackForward(a5), CallbackForward(a6)); | 984 | 42.9k | } |
|
985 | | }; |
986 | | |
987 | | template <typename ReturnType, typename Runnable,typename A1, typename A2, |
988 | | typename A3, typename A4, typename A5, typename A6, typename A7> |
989 | | struct InvokeHelper<false, ReturnType, Runnable, |
990 | | void(A1, A2, A3, A4, A5, A6, A7)> { |
991 | | static ReturnType MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, |
992 | | A5 a5, A6 a6, A7 a7) { |
993 | | return runnable.Run(CallbackForward(a1), CallbackForward(a2), |
994 | | CallbackForward(a3), CallbackForward(a4), CallbackForward(a5), |
995 | | CallbackForward(a6), CallbackForward(a7)); |
996 | | } |
997 | | }; |
998 | | |
999 | | template <typename Runnable,typename A1, typename A2, typename A3, typename A4, |
1000 | | typename A5, typename A6, typename A7> |
1001 | | struct InvokeHelper<false, void, Runnable, |
1002 | | void(A1, A2, A3, A4, A5, A6, A7)> { |
1003 | | static void MakeItSo(Runnable runnable, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, |
1004 | 332k | A6 a6, A7 a7) { |
1005 | 332k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), |
1006 | 332k | CallbackForward(a4), CallbackForward(a5), CallbackForward(a6), |
1007 | 332k | CallbackForward(a7)); |
1008 | 332k | } _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_SJ_RKSU_SN_SS_EE8MakeItSoESX_SY_SD_SG_SJ_S10_SN_SS_ Line | Count | Source | 1004 | 327k | A6 a6, A7 a7) { | 1005 | 327k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 1006 | 327k | CallbackForward(a4), CallbackForward(a5), CallbackForward(a6), | 1007 | 327k | CallbackForward(a7)); | 1008 | 327k | } |
Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_PSH_RKSU_SN_SS_EE8MakeItSoESX_SY_SD_SG_SZ_S11_SN_SS_ Unexecuted instantiation: _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS8_mEEEFvS5_RKS6_RKS8_RKiRKSB_SI_RKmEE8MakeItSoESE_S5_SG_SI_SK_SM_SI_SO_ _ZN2yb8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS4_16YsckTabletServerEEERKNSA_INS_13BlockingQueueINS9_4pairINS_6SchemaENS9_12basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSN_RKNS4_15ChecksumOptionsERKNS_6StatusEyEEEFvPS5_SE_ST_SV_SY_S11_RKyEE8MakeItSoES14_S15_SE_ST_SV_SY_S11_S17_ Line | Count | Source | 1004 | 4.19k | A6 a6, A7 a7) { | 1005 | 4.19k | runnable.Run(CallbackForward(a1), CallbackForward(a2), CallbackForward(a3), | 1006 | 4.19k | CallbackForward(a4), CallbackForward(a5), CallbackForward(a6), | 1007 | 4.19k | CallbackForward(a7)); | 1008 | 4.19k | } |
|
1009 | | }; |
1010 | | |
1011 | | // Invoker<> |
1012 | | // |
1013 | | // See description at the top of the file. |
1014 | | template <int NumBound, typename Storage, typename RunType> |
1015 | | struct Invoker; |
1016 | | |
1017 | | // Arity 0 -> 0. |
1018 | | template <typename StorageType, typename R> |
1019 | | struct Invoker<0, StorageType, R()> { |
1020 | | typedef R(RunType)(BindStateBase*); |
1021 | | |
1022 | | typedef R(UnboundRunType)(); |
1023 | | |
1024 | 75.8k | static R Run(BindStateBase* base) { |
1025 | 75.8k | StorageType* storage = static_cast<StorageType*>(base); |
1026 | | |
1027 | | // Local references to make debugger stepping easier. If in a debugger, |
1028 | | // you really want to warp ahead and step through the |
1029 | | // InvokeHelper<>::MakeItSo() call below. |
1030 | | |
1031 | 75.8k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1032 | 75.8k | typename StorageType::RunnableType, |
1033 | 75.8k | void()> |
1034 | 75.8k | ::MakeItSo(storage->runnable_); |
1035 | 75.8k | } _ZN2yb8internal7InvokerILi0ENS0_9BindStateINS0_15RunnableAdapterIPFivEEES4_FvvEEES4_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1024 | 1 | static R Run(BindStateBase* base) { | 1025 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1026 | | | 1027 | | // Local references to make debugger stepping easier. If in a debugger, | 1028 | | // you really want to warp ahead and step through the | 1029 | | // InvokeHelper<>::MakeItSo() call below. | 1030 | | | 1031 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1032 | 1 | typename StorageType::RunnableType, | 1033 | 1 | void()> | 1034 | 1 | ::MakeItSo(storage->runnable_); | 1035 | 1 | } |
_ZN2yb8internal7InvokerILi0ENS0_9BindStateINS0_15RunnableAdapterIPFyvEEES4_FvvEEES4_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1024 | 75.8k | static R Run(BindStateBase* base) { | 1025 | 75.8k | StorageType* storage = static_cast<StorageType*>(base); | 1026 | | | 1027 | | // Local references to make debugger stepping easier. If in a debugger, | 1028 | | // you really want to warp ahead and step through the | 1029 | | // InvokeHelper<>::MakeItSo() call below. | 1030 | | | 1031 | 75.8k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1032 | 75.8k | typename StorageType::RunnableType, | 1033 | 75.8k | void()> | 1034 | 75.8k | ::MakeItSo(storage->runnable_); | 1035 | 75.8k | } |
|
1036 | | }; |
1037 | | |
1038 | | // Arity 1 -> 1. |
1039 | | template <typename StorageType, typename R,typename X1> |
1040 | | struct Invoker<0, StorageType, R(X1)> { |
1041 | | typedef R(RunType)(BindStateBase*, |
1042 | | typename CallbackParamTraits<X1>::ForwardType); |
1043 | | |
1044 | | typedef R(UnboundRunType)(X1); |
1045 | | |
1046 | | static R Run(BindStateBase* base, |
1047 | 967 | typename CallbackParamTraits<X1>::ForwardType x1) { |
1048 | 967 | StorageType* storage = static_cast<StorageType*>(base); |
1049 | | |
1050 | | // Local references to make debugger stepping easier. If in a debugger, |
1051 | | // you really want to warp ahead and step through the |
1052 | | // InvokeHelper<>::MakeItSo() call below. |
1053 | | |
1054 | 967 | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1055 | 967 | typename StorageType::RunnableType, |
1056 | 967 | void(typename CallbackParamTraits<X1>::ForwardType x1)> |
1057 | 967 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); |
1058 | 967 | } _ZN2yb8internal7InvokerILi0ENS0_9BindStateINS0_15RunnableAdapterIPFvRKNS_6StatusEEEES7_FvvEEES7_E3RunEPNS0_13BindStateBaseES6_ Line | Count | Source | 1047 | 191 | typename CallbackParamTraits<X1>::ForwardType x1) { | 1048 | 191 | StorageType* storage = static_cast<StorageType*>(base); | 1049 | | | 1050 | | // Local references to make debugger stepping easier. If in a debugger, | 1051 | | // you really want to warp ahead and step through the | 1052 | | // InvokeHelper<>::MakeItSo() call below. | 1053 | | | 1054 | 191 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1055 | 191 | typename StorageType::RunnableType, | 1056 | 191 | void(typename CallbackParamTraits<X1>::ForwardType x1)> | 1057 | 191 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1058 | 191 | } |
_ZN2yb8internal7InvokerILi0ENS0_9BindStateINS0_15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEES9_FvvEEES9_E3RunEPNS0_13BindStateBaseERKS8_ Line | Count | Source | 1047 | 473 | typename CallbackParamTraits<X1>::ForwardType x1) { | 1048 | 473 | StorageType* storage = static_cast<StorageType*>(base); | 1049 | | | 1050 | | // Local references to make debugger stepping easier. If in a debugger, | 1051 | | // you really want to warp ahead and step through the | 1052 | | // InvokeHelper<>::MakeItSo() call below. | 1053 | | | 1054 | 473 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1055 | 473 | typename StorageType::RunnableType, | 1056 | 473 | void(typename CallbackParamTraits<X1>::ForwardType x1)> | 1057 | 473 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1058 | 473 | } |
_ZN2yb8internal7InvokerILi0ENS0_9BindStateINS0_15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEEES7_FvvEEES7_E3RunEPNS0_13BindStateBaseERKS6_ Line | Count | Source | 1047 | 303 | typename CallbackParamTraits<X1>::ForwardType x1) { | 1048 | 303 | StorageType* storage = static_cast<StorageType*>(base); | 1049 | | | 1050 | | // Local references to make debugger stepping easier. If in a debugger, | 1051 | | // you really want to warp ahead and step through the | 1052 | | // InvokeHelper<>::MakeItSo() call below. | 1053 | | | 1054 | 303 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1055 | 303 | typename StorageType::RunnableType, | 1056 | 303 | void(typename CallbackParamTraits<X1>::ForwardType x1)> | 1057 | 303 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1058 | 303 | } |
|
1059 | | }; |
1060 | | |
1061 | | // Arity 1 -> 0. |
1062 | | template <typename StorageType, typename R,typename X1> |
1063 | | struct Invoker<1, StorageType, R(X1)> { |
1064 | | typedef R(RunType)(BindStateBase*); |
1065 | | |
1066 | | typedef R(UnboundRunType)(); |
1067 | | |
1068 | 273k | static R Run(BindStateBase* base) { |
1069 | 273k | StorageType* storage = static_cast<StorageType*>(base); |
1070 | | |
1071 | | // Local references to make debugger stepping easier. If in a debugger, |
1072 | | // you really want to warp ahead and step through the |
1073 | | // InvokeHelper<>::MakeItSo() call below. |
1074 | 273k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1075 | | |
1076 | 273k | typename Bound1UnwrapTraits::ForwardType x1 = |
1077 | 273k | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1078 | 273k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1079 | 273k | typename StorageType::RunnableType, |
1080 | 273k | void(typename Bound1UnwrapTraits::ForwardType)> |
1081 | 273k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); |
1082 | 273k | } _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_3RefEFivEEEFiPS4_EFv13scoped_refptrIS4_EEEES9_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 1 | static R Run(BindStateBase* base) { | 1069 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 1 | typename StorageType::RunnableType, | 1080 | 1 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 1 | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_12RefCountableEKFvvEEEFvPKS4_EFvPS4_EEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 1 | static R Run(BindStateBase* base) { | 1069 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 1 | typename StorageType::RunnableType, | 1080 | 1 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 1 | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFxPiEEES5_FvNS0_17UnretainedWrapperIiEEEEES5_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 12 | static R Run(BindStateBase* base) { | 1069 | 12 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 12 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 12 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 12 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 12 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 12 | typename StorageType::RunnableType, | 1080 | 12 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 12 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 12 | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFxxEEES4_FvxEEES4_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 6 | static R Run(BindStateBase* base) { | 1069 | 6 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 6 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 6 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 6 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 6 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 6 | typename StorageType::RunnableType, | 1080 | 6 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 6 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 6 | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_3log3LogEFvvEEEFvPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 97.0k | static R Run(BindStateBase* base) { | 1069 | 97.0k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 97.0k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 97.0k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 97.0k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 97.0k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 97.0k | typename StorageType::RunnableType, | 1080 | 97.0k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 97.0k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 97.0k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFNS_6StatusEvEEEFS6_PS5_EFvNS0_17UnretainedWrapperIS5_EEEEESB_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 2.01k | static R Run(BindStateBase* base) { | 1069 | 2.01k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 2.01k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 2.01k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 2.01k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 2.01k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 2.01k | typename StorageType::RunnableType, | 1080 | 2.01k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 2.01k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 2.01k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFvvEEEFvPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 2.01k | static R Run(BindStateBase* base) { | 1069 | 2.01k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 2.01k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 2.01k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 2.01k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 2.01k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 2.01k | typename StorageType::RunnableType, | 1080 | 2.01k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 2.01k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 2.01k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master6MasterEFvvEEEFvPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 5.42k | static R Run(BindStateBase* base) { | 1069 | 5.42k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 5.42k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 5.42k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 5.42k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 5.42k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 5.42k | typename StorageType::RunnableType, | 1080 | 5.42k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 5.42k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 5.42k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFyvEEEFyPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 30.5k | static R Run(BindStateBase* base) { | 1069 | 30.5k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 30.5k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 30.5k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 30.5k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 30.5k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 30.5k | typename StorageType::RunnableType, | 1080 | 30.5k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 30.5k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 30.5k | } |
Unexecuted instantiation: _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFyyEEES4_FvyEEES4_E3RunEPNS0_13BindStateBaseE _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFxvEEEFxPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 15.2k | static R Run(BindStateBase* base) { | 1069 | 15.2k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 15.2k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 15.2k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 15.2k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 15.2k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 15.2k | typename StorageType::RunnableType, | 1080 | 15.2k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 15.2k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 15.2k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6server12LogicalClockEFyvEEEFyPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 28 | static R Run(BindStateBase* base) { | 1069 | 28 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 28 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 28 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 28 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 28 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 28 | typename StorageType::RunnableType, | 1080 | 28 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 28 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 28 | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFyPKcEEES6_FvNS0_17UnretainedWrapperIS4_EEEEES6_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 91.0k | static R Run(BindStateBase* base) { | 1069 | 91.0k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 91.0k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 91.0k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 91.0k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 91.0k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 91.0k | typename StorageType::RunnableType, | 1080 | 91.0k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 91.0k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 91.0k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_5debug8TraceLogEFvvEEEFvPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 8 | static R Run(BindStateBase* base) { | 1069 | 8 | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 8 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 8 | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 8 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 8 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 8 | typename StorageType::RunnableType, | 1080 | 8 | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 8 | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 8 | } |
thread.cc:_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEEFyPS5_EFvNS0_17UnretainedWrapperIS5_EEEEESA_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1068 | 30.3k | static R Run(BindStateBase* base) { | 1069 | 30.3k | StorageType* storage = static_cast<StorageType*>(base); | 1070 | | | 1071 | | // Local references to make debugger stepping easier. If in a debugger, | 1072 | | // you really want to warp ahead and step through the | 1073 | | // InvokeHelper<>::MakeItSo() call below. | 1074 | 30.3k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1075 | | | 1076 | 30.3k | typename Bound1UnwrapTraits::ForwardType x1 = | 1077 | 30.3k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1078 | 30.3k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1079 | 30.3k | typename StorageType::RunnableType, | 1080 | 30.3k | void(typename Bound1UnwrapTraits::ForwardType)> | 1081 | 30.3k | ::MakeItSo(storage->runnable_, CallbackForward(x1)); | 1082 | 30.3k | } |
|
1083 | | }; |
1084 | | |
1085 | | // Arity 2 -> 2. |
1086 | | template <typename StorageType, typename R,typename X1, typename X2> |
1087 | | struct Invoker<0, StorageType, R(X1, X2)> { |
1088 | | typedef R(RunType)(BindStateBase*, |
1089 | | typename CallbackParamTraits<X1>::ForwardType, |
1090 | | typename CallbackParamTraits<X2>::ForwardType); |
1091 | | |
1092 | | typedef R(UnboundRunType)(X1, X2); |
1093 | | |
1094 | | static R Run(BindStateBase* base, |
1095 | | typename CallbackParamTraits<X1>::ForwardType x1, |
1096 | | typename CallbackParamTraits<X2>::ForwardType x2) { |
1097 | | StorageType* storage = static_cast<StorageType*>(base); |
1098 | | |
1099 | | // Local references to make debugger stepping easier. If in a debugger, |
1100 | | // you really want to warp ahead and step through the |
1101 | | // InvokeHelper<>::MakeItSo() call below. |
1102 | | |
1103 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1104 | | typename StorageType::RunnableType, |
1105 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
1106 | | typename CallbackParamTraits<X2>::ForwardType x2)> |
1107 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1108 | | CallbackForward(x2)); |
1109 | | } |
1110 | | }; |
1111 | | |
1112 | | // Arity 2 -> 1. |
1113 | | template <typename StorageType, typename R,typename X1, typename X2> |
1114 | | struct Invoker<1, StorageType, R(X1, X2)> { |
1115 | | typedef R(RunType)(BindStateBase*, |
1116 | | typename CallbackParamTraits<X2>::ForwardType); |
1117 | | |
1118 | | typedef R(UnboundRunType)(X2); |
1119 | | |
1120 | | static R Run(BindStateBase* base, |
1121 | 856k | typename CallbackParamTraits<X2>::ForwardType x2) { |
1122 | 856k | StorageType* storage = static_cast<StorageType*>(base); |
1123 | | |
1124 | | // Local references to make debugger stepping easier. If in a debugger, |
1125 | | // you really want to warp ahead and step through the |
1126 | | // InvokeHelper<>::MakeItSo() call below. |
1127 | 856k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1128 | | |
1129 | 856k | typename Bound1UnwrapTraits::ForwardType x1 = |
1130 | 856k | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1131 | 856k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1132 | 856k | typename StorageType::RunnableType, |
1133 | 856k | void(typename Bound1UnwrapTraits::ForwardType, |
1134 | 856k | typename CallbackParamTraits<X2>::ForwardType x2)> |
1135 | 856k | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1136 | 856k | CallbackForward(x2)); |
1137 | 856k | } _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEESE_FvS8_EEESE_E3RunEPNS0_13BindStateBaseESD_ Line | Count | Source | 1121 | 250 | typename CallbackParamTraits<X2>::ForwardType x2) { | 1122 | 250 | StorageType* storage = static_cast<StorageType*>(base); | 1123 | | | 1124 | | // Local references to make debugger stepping easier. If in a debugger, | 1125 | | // you really want to warp ahead and step through the | 1126 | | // InvokeHelper<>::MakeItSo() call below. | 1127 | 250 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1128 | | | 1129 | 250 | typename Bound1UnwrapTraits::ForwardType x1 = | 1130 | 250 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1131 | 250 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1132 | 250 | typename StorageType::RunnableType, | 1133 | 250 | void(typename Bound1UnwrapTraits::ForwardType, | 1134 | 250 | typename CallbackParamTraits<X2>::ForwardType x2)> | 1135 | 250 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1136 | 250 | CallbackForward(x2)); | 1137 | 250 | } |
mt-log-test.cc:_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEEFvPS6_S9_EFvSD_EEESE_E3RunEPNS0_13BindStateBaseES9_ Line | Count | Source | 1121 | 2.00k | typename CallbackParamTraits<X2>::ForwardType x2) { | 1122 | 2.00k | StorageType* storage = static_cast<StorageType*>(base); | 1123 | | | 1124 | | // Local references to make debugger stepping easier. If in a debugger, | 1125 | | // you really want to warp ahead and step through the | 1126 | | // InvokeHelper<>::MakeItSo() call below. | 1127 | 2.00k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1128 | | | 1129 | 2.00k | typename Bound1UnwrapTraits::ForwardType x1 = | 1130 | 2.00k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1131 | 2.00k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1132 | 2.00k | typename StorageType::RunnableType, | 1133 | 2.00k | void(typename Bound1UnwrapTraits::ForwardType, | 1134 | 2.00k | typename CallbackParamTraits<X2>::ForwardType x2)> | 1135 | 2.00k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1136 | 2.00k | CallbackForward(x2)); | 1137 | 2.00k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEEEFvPS4_S7_EFvNS0_17UnretainedWrapperIS4_EEEEESC_E3RunEPNS0_13BindStateBaseES7_ Line | Count | Source | 1121 | 853k | typename CallbackParamTraits<X2>::ForwardType x2) { | 1122 | 853k | StorageType* storage = static_cast<StorageType*>(base); | 1123 | | | 1124 | | // Local references to make debugger stepping easier. If in a debugger, | 1125 | | // you really want to warp ahead and step through the | 1126 | | // InvokeHelper<>::MakeItSo() call below. | 1127 | 853k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1128 | | | 1129 | 853k | typename Bound1UnwrapTraits::ForwardType x1 = | 1130 | 853k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1131 | 853k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1132 | 853k | typename StorageType::RunnableType, | 1133 | 853k | void(typename Bound1UnwrapTraits::ForwardType, | 1134 | 853k | typename CallbackParamTraits<X2>::ForwardType x2)> | 1135 | 853k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1136 | 853k | CallbackForward(x2)); | 1137 | 853k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFiiPKcEEES6_FviEEES6_E3RunEPNS0_13BindStateBaseERKS5_ Line | Count | Source | 1121 | 1 | typename CallbackParamTraits<X2>::ForwardType x2) { | 1122 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1123 | | | 1124 | | // Local references to make debugger stepping easier. If in a debugger, | 1125 | | // you really want to warp ahead and step through the | 1126 | | // InvokeHelper<>::MakeItSo() call below. | 1127 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1128 | | | 1129 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1130 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1131 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1132 | 1 | typename StorageType::RunnableType, | 1133 | 1 | void(typename Bound1UnwrapTraits::ForwardType, | 1134 | 1 | typename CallbackParamTraits<X2>::ForwardType x2)> | 1135 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1136 | 1 | CallbackForward(x2)); | 1137 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEESB_FvS7_EEESB_E3RunEPNS0_13BindStateBaseESA_ |
1138 | | }; |
1139 | | |
1140 | | // Arity 2 -> 0. |
1141 | | template <typename StorageType, typename R,typename X1, typename X2> |
1142 | | struct Invoker<2, StorageType, R(X1, X2)> { |
1143 | | typedef R(RunType)(BindStateBase*); |
1144 | | |
1145 | | typedef R(UnboundRunType)(); |
1146 | | |
1147 | 15.1M | static R Run(BindStateBase* base) { |
1148 | 15.1M | StorageType* storage = static_cast<StorageType*>(base); |
1149 | | |
1150 | | // Local references to make debugger stepping easier. If in a debugger, |
1151 | | // you really want to warp ahead and step through the |
1152 | | // InvokeHelper<>::MakeItSo() call below. |
1153 | 15.1M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1154 | 15.1M | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1155 | | |
1156 | 15.1M | typename Bound1UnwrapTraits::ForwardType x1 = |
1157 | 15.1M | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1158 | 15.1M | typename Bound2UnwrapTraits::ForwardType x2 = |
1159 | 15.1M | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1160 | 15.1M | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1161 | 15.1M | typename StorageType::RunnableType, |
1162 | 15.1M | void(typename Bound1UnwrapTraits::ForwardType, |
1163 | 15.1M | typename Bound2UnwrapTraits::ForwardType)> |
1164 | 15.1M | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1165 | 15.1M | CallbackForward(x2)); |
1166 | 15.1M | } _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIPFvPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPKcEEESE_FvSB_NS0_17UnretainedWrapperISC_EEEEESE_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1147 | 2 | static R Run(BindStateBase* base) { | 1148 | 2 | StorageType* storage = static_cast<StorageType*>(base); | 1149 | | | 1150 | | // Local references to make debugger stepping easier. If in a debugger, | 1151 | | // you really want to warp ahead and step through the | 1152 | | // InvokeHelper<>::MakeItSo() call below. | 1153 | 2 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1154 | 2 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1155 | | | 1156 | 2 | typename Bound1UnwrapTraits::ForwardType x1 = | 1157 | 2 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1158 | 2 | typename Bound2UnwrapTraits::ForwardType x2 = | 1159 | 2 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1160 | 2 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1161 | 2 | typename StorageType::RunnableType, | 1162 | 2 | void(typename Bound1UnwrapTraits::ForwardType, | 1163 | 2 | typename Bound2UnwrapTraits::ForwardType)> | 1164 | 2 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1165 | 2 | CallbackForward(x2)); | 1166 | 2 | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIPFviPiEEES5_S5_EES5_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1147 | 1 | static R Run(BindStateBase* base) { | 1148 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1149 | | | 1150 | | // Local references to make debugger stepping easier. If in a debugger, | 1151 | | // you really want to warp ahead and step through the | 1152 | | // InvokeHelper<>::MakeItSo() call below. | 1153 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1154 | 1 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1155 | | | 1156 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1157 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1158 | 1 | typename Bound2UnwrapTraits::ForwardType x2 = | 1159 | 1 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1160 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1161 | 1 | typename StorageType::RunnableType, | 1162 | 1 | void(typename Bound1UnwrapTraits::ForwardType, | 1163 | 1 | typename Bound2UnwrapTraits::ForwardType)> | 1164 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1165 | 1 | CallbackForward(x2)); | 1166 | 1 | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_7PromiseIiEEFvRKiEEEFvPS5_S7_EFvNS0_17UnretainedWrapperIS5_EEiEEESC_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1147 | 1 | static R Run(BindStateBase* base) { | 1148 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1149 | | | 1150 | | // Local references to make debugger stepping easier. If in a debugger, | 1151 | | // you really want to warp ahead and step through the | 1152 | | // InvokeHelper<>::MakeItSo() call below. | 1153 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1154 | 1 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1155 | | | 1156 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1157 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1158 | 1 | typename Bound2UnwrapTraits::ForwardType x2 = | 1159 | 1 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1160 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1161 | 1 | typename StorageType::RunnableType, | 1162 | 1 | void(typename Bound1UnwrapTraits::ForwardType, | 1163 | 1 | typename Bound2UnwrapTraits::ForwardType)> | 1164 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1165 | 1 | CallbackForward(x2)); | 1166 | 1 | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS4_22MajorityReplicatedDataEEEEFvPS5_S8_EFvNS0_17UnretainedWrapperIS5_EES6_EEESD_E3RunEPNS0_13BindStateBaseE Line | Count | Source | 1147 | 15.1M | static R Run(BindStateBase* base) { | 1148 | 15.1M | StorageType* storage = static_cast<StorageType*>(base); | 1149 | | | 1150 | | // Local references to make debugger stepping easier. If in a debugger, | 1151 | | // you really want to warp ahead and step through the | 1152 | | // InvokeHelper<>::MakeItSo() call below. | 1153 | 15.1M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1154 | 15.1M | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1155 | | | 1156 | 15.1M | typename Bound1UnwrapTraits::ForwardType x1 = | 1157 | 15.1M | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1158 | 15.1M | typename Bound2UnwrapTraits::ForwardType x2 = | 1159 | 15.1M | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1160 | 15.1M | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1161 | 15.1M | typename StorageType::RunnableType, | 1162 | 15.1M | void(typename Bound1UnwrapTraits::ForwardType, | 1163 | 15.1M | typename Bound2UnwrapTraits::ForwardType)> | 1164 | 15.1M | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1165 | 15.1M | CallbackForward(x2)); | 1166 | 15.1M | } |
|
1167 | | }; |
1168 | | |
1169 | | // Arity 3 -> 3. |
1170 | | template <typename StorageType, typename R,typename X1, typename X2, |
1171 | | typename X3> |
1172 | | struct Invoker<0, StorageType, R(X1, X2, X3)> { |
1173 | | typedef R(RunType)(BindStateBase*, |
1174 | | typename CallbackParamTraits<X1>::ForwardType, |
1175 | | typename CallbackParamTraits<X2>::ForwardType, |
1176 | | typename CallbackParamTraits<X3>::ForwardType); |
1177 | | |
1178 | | typedef R(UnboundRunType)(X1, X2, X3); |
1179 | | |
1180 | | static R Run(BindStateBase* base, |
1181 | | typename CallbackParamTraits<X1>::ForwardType x1, |
1182 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1183 | | typename CallbackParamTraits<X3>::ForwardType x3) { |
1184 | | StorageType* storage = static_cast<StorageType*>(base); |
1185 | | |
1186 | | // Local references to make debugger stepping easier. If in a debugger, |
1187 | | // you really want to warp ahead and step through the |
1188 | | // InvokeHelper<>::MakeItSo() call below. |
1189 | | |
1190 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1191 | | typename StorageType::RunnableType, |
1192 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
1193 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1194 | | typename CallbackParamTraits<X3>::ForwardType x3)> |
1195 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1196 | | CallbackForward(x2), CallbackForward(x3)); |
1197 | | } |
1198 | | }; |
1199 | | |
1200 | | // Arity 3 -> 2. |
1201 | | template <typename StorageType, typename R,typename X1, typename X2, |
1202 | | typename X3> |
1203 | | struct Invoker<1, StorageType, R(X1, X2, X3)> { |
1204 | | typedef R(RunType)(BindStateBase*, |
1205 | | typename CallbackParamTraits<X2>::ForwardType, |
1206 | | typename CallbackParamTraits<X3>::ForwardType); |
1207 | | |
1208 | | typedef R(UnboundRunType)(X2, X3); |
1209 | | |
1210 | | static R Run(BindStateBase* base, |
1211 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1212 | 4.96M | typename CallbackParamTraits<X3>::ForwardType x3) { |
1213 | 4.96M | StorageType* storage = static_cast<StorageType*>(base); |
1214 | | |
1215 | | // Local references to make debugger stepping easier. If in a debugger, |
1216 | | // you really want to warp ahead and step through the |
1217 | | // InvokeHelper<>::MakeItSo() call below. |
1218 | 4.96M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1219 | | |
1220 | 4.96M | typename Bound1UnwrapTraits::ForwardType x1 = |
1221 | 4.96M | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1222 | 4.96M | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1223 | 4.96M | typename StorageType::RunnableType, |
1224 | 4.96M | void(typename Bound1UnwrapTraits::ForwardType, |
1225 | 4.96M | typename CallbackParamTraits<X2>::ForwardType x2, |
1226 | 4.96M | typename CallbackParamTraits<X3>::ForwardType x3)> |
1227 | 4.96M | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1228 | 4.96M | CallbackForward(x2), CallbackForward(x3)); |
1229 | 4.96M | } _ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEESC_FvS5_EEESC_E3RunEPNS0_13BindStateBaseES8_SB_ Line | Count | Source | 1212 | 395k | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 395k | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 395k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 395k | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 395k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 395k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 395k | typename StorageType::RunnableType, | 1224 | 395k | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 395k | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 395k | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 395k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 395k | CallbackForward(x2), CallbackForward(x3)); | 1229 | 395k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS_6StatusEEEEFvPS4_SD_SG_EFvNS0_17UnretainedWrapperINS_43FailureDetectorTest_TestDetectsFailure_TestEEEEEESL_E3RunEPNS0_13BindStateBaseESD_SG_ Line | Count | Source | 1212 | 1 | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 1 | typename StorageType::RunnableType, | 1224 | 1 | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 1 | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 1 | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 1 | CallbackForward(x2), CallbackForward(x3)); | 1229 | 1 | } |
heartbeater.cc:_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEESI_FvS9_EEESI_E3RunEPNS0_13BindStateBaseESE_SH_ Line | Count | Source | 1212 | 5.42k | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 5.42k | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 5.42k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 5.42k | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 5.42k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 5.42k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 5.42k | typename StorageType::RunnableType, | 1224 | 5.42k | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 5.42k | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 5.42k | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 5.42k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 5.42k | CallbackForward(x2), CallbackForward(x3)); | 1229 | 5.42k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS5_S8_SF_EFvNS0_17UnretainedWrapperIS5_EEEEESK_E3RunEPNS0_13BindStateBaseES8_SF_ Line | Count | Source | 1212 | 4.53M | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 4.53M | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 4.53M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 4.53M | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 4.53M | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 4.53M | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 4.53M | typename StorageType::RunnableType, | 1224 | 4.53M | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 4.53M | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 4.53M | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 4.53M | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 4.53M | CallbackForward(x2), CallbackForward(x3)); | 1229 | 4.53M | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEEFvPS6_S9_SC_EFvNS0_17UnretainedWrapperIS6_EEEEESH_E3RunEPNS0_13BindStateBaseES9_SC_ Line | Count | Source | 1212 | 27.3k | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 27.3k | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 27.3k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 27.3k | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 27.3k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 27.3k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 27.3k | typename StorageType::RunnableType, | 1224 | 27.3k | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 27.3k | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 27.3k | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 27.3k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 27.3k | CallbackForward(x2), CallbackForward(x3)); | 1229 | 27.3k | } |
_ZN2yb8internal7InvokerILi1ENS0_9BindStateINS0_15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEEFvPS5_SA_bEFvNS0_17UnretainedWrapperIS5_EEEEESF_E3RunEPNS0_13BindStateBaseESA_RKb Line | Count | Source | 1212 | 348 | typename CallbackParamTraits<X3>::ForwardType x3) { | 1213 | 348 | StorageType* storage = static_cast<StorageType*>(base); | 1214 | | | 1215 | | // Local references to make debugger stepping easier. If in a debugger, | 1216 | | // you really want to warp ahead and step through the | 1217 | | // InvokeHelper<>::MakeItSo() call below. | 1218 | 348 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1219 | | | 1220 | 348 | typename Bound1UnwrapTraits::ForwardType x1 = | 1221 | 348 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1222 | 348 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1223 | 348 | typename StorageType::RunnableType, | 1224 | 348 | void(typename Bound1UnwrapTraits::ForwardType, | 1225 | 348 | typename CallbackParamTraits<X2>::ForwardType x2, | 1226 | 348 | typename CallbackParamTraits<X3>::ForwardType x3)> | 1227 | 348 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1228 | 348 | CallbackForward(x2), CallbackForward(x3)); | 1229 | 348 | } |
|
1230 | | }; |
1231 | | |
1232 | | // Arity 3 -> 1. |
1233 | | template <typename StorageType, typename R,typename X1, typename X2, |
1234 | | typename X3> |
1235 | | struct Invoker<2, StorageType, R(X1, X2, X3)> { |
1236 | | typedef R(RunType)(BindStateBase*, |
1237 | | typename CallbackParamTraits<X3>::ForwardType); |
1238 | | |
1239 | | typedef R(UnboundRunType)(X3); |
1240 | | |
1241 | | static R Run(BindStateBase* base, |
1242 | 13.4M | typename CallbackParamTraits<X3>::ForwardType x3) { |
1243 | 13.4M | StorageType* storage = static_cast<StorageType*>(base); |
1244 | | |
1245 | | // Local references to make debugger stepping easier. If in a debugger, |
1246 | | // you really want to warp ahead and step through the |
1247 | | // InvokeHelper<>::MakeItSo() call below. |
1248 | 13.4M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1249 | 13.4M | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1250 | | |
1251 | 13.4M | typename Bound1UnwrapTraits::ForwardType x1 = |
1252 | 13.4M | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1253 | 13.4M | typename Bound2UnwrapTraits::ForwardType x2 = |
1254 | 13.4M | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1255 | 13.4M | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1256 | 13.4M | typename StorageType::RunnableType, |
1257 | 13.4M | void(typename Bound1UnwrapTraits::ForwardType, |
1258 | 13.4M | typename Bound2UnwrapTraits::ForwardType, |
1259 | 13.4M | typename CallbackParamTraits<X3>::ForwardType x3)> |
1260 | 13.4M | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1261 | 13.4M | CallbackForward(x2), CallbackForward(x3)); |
1262 | 13.4M | } _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS5_SE_SI_EFvNS0_17UnretainedWrapperIS5_EESC_EEESN_E3RunEPNS0_13BindStateBaseERKSI_ Line | Count | Source | 1242 | 11 | typename CallbackParamTraits<X3>::ForwardType x3) { | 1243 | 11 | StorageType* storage = static_cast<StorageType*>(base); | 1244 | | | 1245 | | // Local references to make debugger stepping easier. If in a debugger, | 1246 | | // you really want to warp ahead and step through the | 1247 | | // InvokeHelper<>::MakeItSo() call below. | 1248 | 11 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1249 | 11 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1250 | | | 1251 | 11 | typename Bound1UnwrapTraits::ForwardType x1 = | 1252 | 11 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1253 | 11 | typename Bound2UnwrapTraits::ForwardType x2 = | 1254 | 11 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1255 | 11 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1256 | 11 | typename StorageType::RunnableType, | 1257 | 11 | void(typename Bound1UnwrapTraits::ForwardType, | 1258 | 11 | typename Bound2UnwrapTraits::ForwardType, | 1259 | 11 | typename CallbackParamTraits<X3>::ForwardType x3)> | 1260 | 11 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1261 | 11 | CallbackForward(x2), CallbackForward(x3)); | 1262 | 11 | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEEFvPS5_S8_SB_EFvNS0_17UnretainedWrapperIS5_EES6_EEESG_E3RunEPNS0_13BindStateBaseESB_ Line | Count | Source | 1242 | 13.1M | typename CallbackParamTraits<X3>::ForwardType x3) { | 1243 | 13.1M | StorageType* storage = static_cast<StorageType*>(base); | 1244 | | | 1245 | | // Local references to make debugger stepping easier. If in a debugger, | 1246 | | // you really want to warp ahead and step through the | 1247 | | // InvokeHelper<>::MakeItSo() call below. | 1248 | 13.1M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1249 | 13.1M | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1250 | | | 1251 | 13.1M | typename Bound1UnwrapTraits::ForwardType x1 = | 1252 | 13.1M | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1253 | 13.1M | typename Bound2UnwrapTraits::ForwardType x2 = | 1254 | 13.1M | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1255 | 13.1M | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1256 | 13.1M | typename StorageType::RunnableType, | 1257 | 13.1M | void(typename Bound1UnwrapTraits::ForwardType, | 1258 | 13.1M | typename Bound2UnwrapTraits::ForwardType, | 1259 | 13.1M | typename CallbackParamTraits<X3>::ForwardType x3)> | 1260 | 13.1M | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1261 | 13.1M | CallbackForward(x2), CallbackForward(x3)); | 1262 | 13.1M | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS5_SE_SI_EFvNS0_17UnretainedWrapperIS5_EESC_EEESN_E3RunEPNS0_13BindStateBaseERKSI_ Line | Count | Source | 1242 | 19.3k | typename CallbackParamTraits<X3>::ForwardType x3) { | 1243 | 19.3k | StorageType* storage = static_cast<StorageType*>(base); | 1244 | | | 1245 | | // Local references to make debugger stepping easier. If in a debugger, | 1246 | | // you really want to warp ahead and step through the | 1247 | | // InvokeHelper<>::MakeItSo() call below. | 1248 | 19.3k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1249 | 19.3k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1250 | | | 1251 | 19.3k | typename Bound1UnwrapTraits::ForwardType x1 = | 1252 | 19.3k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1253 | 19.3k | typename Bound2UnwrapTraits::ForwardType x2 = | 1254 | 19.3k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1255 | 19.3k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1256 | 19.3k | typename StorageType::RunnableType, | 1257 | 19.3k | void(typename Bound1UnwrapTraits::ForwardType, | 1258 | 19.3k | typename Bound2UnwrapTraits::ForwardType, | 1259 | 19.3k | typename CallbackParamTraits<X3>::ForwardType x3)> | 1260 | 19.3k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1261 | 19.3k | CallbackForward(x2), CallbackForward(x3)); | 1262 | 19.3k | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS5_SE_SI_EFvNS0_17UnretainedWrapperIS5_EESC_EEESN_E3RunEPNS0_13BindStateBaseERKSI_ Line | Count | Source | 1242 | 338k | typename CallbackParamTraits<X3>::ForwardType x3) { | 1243 | 338k | StorageType* storage = static_cast<StorageType*>(base); | 1244 | | | 1245 | | // Local references to make debugger stepping easier. If in a debugger, | 1246 | | // you really want to warp ahead and step through the | 1247 | | // InvokeHelper<>::MakeItSo() call below. | 1248 | 338k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1249 | 338k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1250 | | | 1251 | 338k | typename Bound1UnwrapTraits::ForwardType x1 = | 1252 | 338k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1253 | 338k | typename Bound2UnwrapTraits::ForwardType x2 = | 1254 | 338k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1255 | 338k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1256 | 338k | typename StorageType::RunnableType, | 1257 | 338k | void(typename Bound1UnwrapTraits::ForwardType, | 1258 | 338k | typename Bound2UnwrapTraits::ForwardType, | 1259 | 338k | typename CallbackParamTraits<X3>::ForwardType x3)> | 1260 | 338k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1261 | 338k | CallbackForward(x2), CallbackForward(x3)); | 1262 | 338k | } |
_ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS6_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS5_SE_SI_EFvNS0_17UnretainedWrapperIS5_EESC_EEESN_E3RunEPNS0_13BindStateBaseERKSI_ Line | Count | Source | 1242 | 12 | typename CallbackParamTraits<X3>::ForwardType x3) { | 1243 | 12 | StorageType* storage = static_cast<StorageType*>(base); | 1244 | | | 1245 | | // Local references to make debugger stepping easier. If in a debugger, | 1246 | | // you really want to warp ahead and step through the | 1247 | | // InvokeHelper<>::MakeItSo() call below. | 1248 | 12 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1249 | 12 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1250 | | | 1251 | 12 | typename Bound1UnwrapTraits::ForwardType x1 = | 1252 | 12 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1253 | 12 | typename Bound2UnwrapTraits::ForwardType x2 = | 1254 | 12 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1255 | 12 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1256 | 12 | typename StorageType::RunnableType, | 1257 | 12 | void(typename Bound1UnwrapTraits::ForwardType, | 1258 | 12 | typename Bound2UnwrapTraits::ForwardType, | 1259 | 12 | typename CallbackParamTraits<X3>::ForwardType x3)> | 1260 | 12 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1261 | 12 | CallbackForward(x2), CallbackForward(x3)); | 1262 | 12 | } |
|
1263 | | }; |
1264 | | |
1265 | | // Arity 3 -> 0. |
1266 | | template <typename StorageType, typename R,typename X1, typename X2, |
1267 | | typename X3> |
1268 | | struct Invoker<3, StorageType, R(X1, X2, X3)> { |
1269 | | typedef R(RunType)(BindStateBase*); |
1270 | | |
1271 | | typedef R(UnboundRunType)(); |
1272 | | |
1273 | | static R Run(BindStateBase* base) { |
1274 | | StorageType* storage = static_cast<StorageType*>(base); |
1275 | | |
1276 | | // Local references to make debugger stepping easier. If in a debugger, |
1277 | | // you really want to warp ahead and step through the |
1278 | | // InvokeHelper<>::MakeItSo() call below. |
1279 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1280 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1281 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1282 | | |
1283 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1284 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1285 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1286 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1287 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1288 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1289 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1290 | | typename StorageType::RunnableType, |
1291 | | void(typename Bound1UnwrapTraits::ForwardType, |
1292 | | typename Bound2UnwrapTraits::ForwardType, |
1293 | | typename Bound3UnwrapTraits::ForwardType)> |
1294 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1295 | | CallbackForward(x2), CallbackForward(x3)); |
1296 | | } |
1297 | | }; |
1298 | | |
1299 | | // Arity 4 -> 4. |
1300 | | template <typename StorageType, typename R,typename X1, typename X2, |
1301 | | typename X3, typename X4> |
1302 | | struct Invoker<0, StorageType, R(X1, X2, X3, X4)> { |
1303 | | typedef R(RunType)(BindStateBase*, |
1304 | | typename CallbackParamTraits<X1>::ForwardType, |
1305 | | typename CallbackParamTraits<X2>::ForwardType, |
1306 | | typename CallbackParamTraits<X3>::ForwardType, |
1307 | | typename CallbackParamTraits<X4>::ForwardType); |
1308 | | |
1309 | | typedef R(UnboundRunType)(X1, X2, X3, X4); |
1310 | | |
1311 | | static R Run(BindStateBase* base, |
1312 | | typename CallbackParamTraits<X1>::ForwardType x1, |
1313 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1314 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1315 | | typename CallbackParamTraits<X4>::ForwardType x4) { |
1316 | | StorageType* storage = static_cast<StorageType*>(base); |
1317 | | |
1318 | | // Local references to make debugger stepping easier. If in a debugger, |
1319 | | // you really want to warp ahead and step through the |
1320 | | // InvokeHelper<>::MakeItSo() call below. |
1321 | | |
1322 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1323 | | typename StorageType::RunnableType, |
1324 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
1325 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1326 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1327 | | typename CallbackParamTraits<X4>::ForwardType x4)> |
1328 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1329 | | CallbackForward(x2), CallbackForward(x3), |
1330 | | CallbackForward(x4)); |
1331 | | } |
1332 | | }; |
1333 | | |
1334 | | // Arity 4 -> 3. |
1335 | | template <typename StorageType, typename R,typename X1, typename X2, |
1336 | | typename X3, typename X4> |
1337 | | struct Invoker<1, StorageType, R(X1, X2, X3, X4)> { |
1338 | | typedef R(RunType)(BindStateBase*, |
1339 | | typename CallbackParamTraits<X2>::ForwardType, |
1340 | | typename CallbackParamTraits<X3>::ForwardType, |
1341 | | typename CallbackParamTraits<X4>::ForwardType); |
1342 | | |
1343 | | typedef R(UnboundRunType)(X2, X3, X4); |
1344 | | |
1345 | | static R Run(BindStateBase* base, |
1346 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1347 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1348 | | typename CallbackParamTraits<X4>::ForwardType x4) { |
1349 | | StorageType* storage = static_cast<StorageType*>(base); |
1350 | | |
1351 | | // Local references to make debugger stepping easier. If in a debugger, |
1352 | | // you really want to warp ahead and step through the |
1353 | | // InvokeHelper<>::MakeItSo() call below. |
1354 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1355 | | |
1356 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1357 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1358 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1359 | | typename StorageType::RunnableType, |
1360 | | void(typename Bound1UnwrapTraits::ForwardType, |
1361 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1362 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1363 | | typename CallbackParamTraits<X4>::ForwardType x4)> |
1364 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1365 | | CallbackForward(x2), CallbackForward(x3), |
1366 | | CallbackForward(x4)); |
1367 | | } |
1368 | | }; |
1369 | | |
1370 | | // Arity 4 -> 2. |
1371 | | template <typename StorageType, typename R,typename X1, typename X2, |
1372 | | typename X3, typename X4> |
1373 | | struct Invoker<2, StorageType, R(X1, X2, X3, X4)> { |
1374 | | typedef R(RunType)(BindStateBase*, |
1375 | | typename CallbackParamTraits<X3>::ForwardType, |
1376 | | typename CallbackParamTraits<X4>::ForwardType); |
1377 | | |
1378 | | typedef R(UnboundRunType)(X3, X4); |
1379 | | |
1380 | | static R Run(BindStateBase* base, |
1381 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1382 | 183k | typename CallbackParamTraits<X4>::ForwardType x4) { |
1383 | 183k | StorageType* storage = static_cast<StorageType*>(base); |
1384 | | |
1385 | | // Local references to make debugger stepping easier. If in a debugger, |
1386 | | // you really want to warp ahead and step through the |
1387 | | // InvokeHelper<>::MakeItSo() call below. |
1388 | 183k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1389 | 183k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1390 | | |
1391 | 183k | typename Bound1UnwrapTraits::ForwardType x1 = |
1392 | 183k | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1393 | 183k | typename Bound2UnwrapTraits::ForwardType x2 = |
1394 | 183k | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1395 | 183k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1396 | 183k | typename StorageType::RunnableType, |
1397 | 183k | void(typename Bound1UnwrapTraits::ForwardType, |
1398 | 183k | typename Bound2UnwrapTraits::ForwardType, |
1399 | 183k | typename CallbackParamTraits<X3>::ForwardType x3, |
1400 | 183k | typename CallbackParamTraits<X4>::ForwardType x4)> |
1401 | 183k | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1402 | 183k | CallbackForward(x2), CallbackForward(x3), |
1403 | 183k | CallbackForward(x4)); |
1404 | 183k | } _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES9_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS5_SB_S9_SI_EFvNS0_17UnretainedWrapperINS4_49SystemTableFaultTolerance_TestFaultTolerance_TestEEESB_EEESN_E3RunEPNS0_13BindStateBaseES9_SI_ Line | Count | Source | 1382 | 1 | typename CallbackParamTraits<X4>::ForwardType x4) { | 1383 | 1 | StorageType* storage = static_cast<StorageType*>(base); | 1384 | | | 1385 | | // Local references to make debugger stepping easier. If in a debugger, | 1386 | | // you really want to warp ahead and step through the | 1387 | | // InvokeHelper<>::MakeItSo() call below. | 1388 | 1 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1389 | 1 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1390 | | | 1391 | 1 | typename Bound1UnwrapTraits::ForwardType x1 = | 1392 | 1 | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1393 | 1 | typename Bound2UnwrapTraits::ForwardType x2 = | 1394 | 1 | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1395 | 1 | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1396 | 1 | typename StorageType::RunnableType, | 1397 | 1 | void(typename Bound1UnwrapTraits::ForwardType, | 1398 | 1 | typename Bound2UnwrapTraits::ForwardType, | 1399 | 1 | typename CallbackParamTraits<X3>::ForwardType x3, | 1400 | 1 | typename CallbackParamTraits<X4>::ForwardType x4)> | 1401 | 1 | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1402 | 1 | CallbackForward(x2), CallbackForward(x3), | 1403 | 1 | CallbackForward(x4)); | 1404 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES9_RKNSt3__110shared_ptrINS4_14ExecutedResultEEEEEEFvPS5_SB_S9_SH_EFvNS0_17UnretainedWrapperIS5_EESB_EEESM_E3RunEPNS0_13BindStateBaseES9_SH_ _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS4_EEESD_FvS5_S7_EEESD_E3RunEPNS0_13BindStateBaseESA_SC_ Line | Count | Source | 1382 | 2.28k | typename CallbackParamTraits<X4>::ForwardType x4) { | 1383 | 2.28k | StorageType* storage = static_cast<StorageType*>(base); | 1384 | | | 1385 | | // Local references to make debugger stepping easier. If in a debugger, | 1386 | | // you really want to warp ahead and step through the | 1387 | | // InvokeHelper<>::MakeItSo() call below. | 1388 | 2.28k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1389 | 2.28k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1390 | | | 1391 | 2.28k | typename Bound1UnwrapTraits::ForwardType x1 = | 1392 | 2.28k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1393 | 2.28k | typename Bound2UnwrapTraits::ForwardType x2 = | 1394 | 2.28k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1395 | 2.28k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1396 | 2.28k | typename StorageType::RunnableType, | 1397 | 2.28k | void(typename Bound1UnwrapTraits::ForwardType, | 1398 | 2.28k | typename Bound2UnwrapTraits::ForwardType, | 1399 | 2.28k | typename CallbackParamTraits<X3>::ForwardType x3, | 1400 | 2.28k | typename CallbackParamTraits<X4>::ForwardType x4)> | 1401 | 2.28k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1402 | 2.28k | CallbackForward(x2), CallbackForward(x3), | 1403 | 2.28k | CallbackForward(x4)); | 1404 | 2.28k | } |
Unexecuted instantiation: _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES9_RKNSt3__110shared_ptrINS4_14ExecutedResultEEEEEEFvPS5_SB_S9_SH_EFvNS0_17UnretainedWrapperIS5_EESB_EEESM_E3RunEPNS0_13BindStateBaseES9_SH_ _ZN2yb8internal7InvokerILi2ENS0_9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKSA_EEESH_FvS5_SB_EEESH_E3RunEPNS0_13BindStateBaseESE_SG_ Line | Count | Source | 1382 | 181k | typename CallbackParamTraits<X4>::ForwardType x4) { | 1383 | 181k | StorageType* storage = static_cast<StorageType*>(base); | 1384 | | | 1385 | | // Local references to make debugger stepping easier. If in a debugger, | 1386 | | // you really want to warp ahead and step through the | 1387 | | // InvokeHelper<>::MakeItSo() call below. | 1388 | 181k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 1389 | 181k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 1390 | | | 1391 | 181k | typename Bound1UnwrapTraits::ForwardType x1 = | 1392 | 181k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 1393 | 181k | typename Bound2UnwrapTraits::ForwardType x2 = | 1394 | 181k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 1395 | 181k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 1396 | 181k | typename StorageType::RunnableType, | 1397 | 181k | void(typename Bound1UnwrapTraits::ForwardType, | 1398 | 181k | typename Bound2UnwrapTraits::ForwardType, | 1399 | 181k | typename CallbackParamTraits<X3>::ForwardType x3, | 1400 | 181k | typename CallbackParamTraits<X4>::ForwardType x4)> | 1401 | 181k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 1402 | 181k | CallbackForward(x2), CallbackForward(x3), | 1403 | 181k | CallbackForward(x4)); | 1404 | 181k | } |
|
1405 | | }; |
1406 | | |
1407 | | // Arity 4 -> 1. |
1408 | | template <typename StorageType, typename R,typename X1, typename X2, |
1409 | | typename X3, typename X4> |
1410 | | struct Invoker<3, StorageType, R(X1, X2, X3, X4)> { |
1411 | | typedef R(RunType)(BindStateBase*, |
1412 | | typename CallbackParamTraits<X4>::ForwardType); |
1413 | | |
1414 | | typedef R(UnboundRunType)(X4); |
1415 | | |
1416 | | static R Run(BindStateBase* base, |
1417 | 13.1M | typename CallbackParamTraits<X4>::ForwardType x4) { |
1418 | 13.1M | StorageType* storage = static_cast<StorageType*>(base); |
1419 | | |
1420 | | // Local references to make debugger stepping easier. If in a debugger, |
1421 | | // you really want to warp ahead and step through the |
1422 | | // InvokeHelper<>::MakeItSo() call below. |
1423 | 13.1M | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1424 | 13.1M | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1425 | 13.1M | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1426 | | |
1427 | 13.1M | typename Bound1UnwrapTraits::ForwardType x1 = |
1428 | 13.1M | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1429 | 13.1M | typename Bound2UnwrapTraits::ForwardType x2 = |
1430 | 13.1M | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1431 | 13.1M | typename Bound3UnwrapTraits::ForwardType x3 = |
1432 | 13.1M | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1433 | 13.1M | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1434 | 13.1M | typename StorageType::RunnableType, |
1435 | 13.1M | void(typename Bound1UnwrapTraits::ForwardType, |
1436 | 13.1M | typename Bound2UnwrapTraits::ForwardType, |
1437 | 13.1M | typename Bound3UnwrapTraits::ForwardType, |
1438 | 13.1M | typename CallbackParamTraits<X4>::ForwardType x4)> |
1439 | 13.1M | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1440 | 13.1M | CallbackForward(x2), CallbackForward(x3), |
1441 | 13.1M | CallbackForward(x4)); |
1442 | 13.1M | } |
1443 | | }; |
1444 | | |
1445 | | // Arity 4 -> 0. |
1446 | | template <typename StorageType, typename R,typename X1, typename X2, |
1447 | | typename X3, typename X4> |
1448 | | struct Invoker<4, StorageType, R(X1, X2, X3, X4)> { |
1449 | | typedef R(RunType)(BindStateBase*); |
1450 | | |
1451 | | typedef R(UnboundRunType)(); |
1452 | | |
1453 | | static R Run(BindStateBase* base) { |
1454 | | StorageType* storage = static_cast<StorageType*>(base); |
1455 | | |
1456 | | // Local references to make debugger stepping easier. If in a debugger, |
1457 | | // you really want to warp ahead and step through the |
1458 | | // InvokeHelper<>::MakeItSo() call below. |
1459 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1460 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1461 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1462 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
1463 | | |
1464 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1465 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1466 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1467 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1468 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1469 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1470 | | typename Bound4UnwrapTraits::ForwardType x4 = |
1471 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
1472 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1473 | | typename StorageType::RunnableType, |
1474 | | void(typename Bound1UnwrapTraits::ForwardType, |
1475 | | typename Bound2UnwrapTraits::ForwardType, |
1476 | | typename Bound3UnwrapTraits::ForwardType, |
1477 | | typename Bound4UnwrapTraits::ForwardType)> |
1478 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1479 | | CallbackForward(x2), CallbackForward(x3), |
1480 | | CallbackForward(x4)); |
1481 | | } |
1482 | | }; |
1483 | | |
1484 | | // Arity 5 -> 5. |
1485 | | template <typename StorageType, typename R,typename X1, typename X2, |
1486 | | typename X3, typename X4, typename X5> |
1487 | | struct Invoker<0, StorageType, R(X1, X2, X3, X4, X5)> { |
1488 | | typedef R(RunType)(BindStateBase*, |
1489 | | typename CallbackParamTraits<X1>::ForwardType, |
1490 | | typename CallbackParamTraits<X2>::ForwardType, |
1491 | | typename CallbackParamTraits<X3>::ForwardType, |
1492 | | typename CallbackParamTraits<X4>::ForwardType, |
1493 | | typename CallbackParamTraits<X5>::ForwardType); |
1494 | | |
1495 | | typedef R(UnboundRunType)(X1, X2, X3, X4, X5); |
1496 | | |
1497 | | static R Run(BindStateBase* base, |
1498 | | typename CallbackParamTraits<X1>::ForwardType x1, |
1499 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1500 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1501 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1502 | | typename CallbackParamTraits<X5>::ForwardType x5) { |
1503 | | StorageType* storage = static_cast<StorageType*>(base); |
1504 | | |
1505 | | // Local references to make debugger stepping easier. If in a debugger, |
1506 | | // you really want to warp ahead and step through the |
1507 | | // InvokeHelper<>::MakeItSo() call below. |
1508 | | |
1509 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1510 | | typename StorageType::RunnableType, |
1511 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
1512 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1513 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1514 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1515 | | typename CallbackParamTraits<X5>::ForwardType x5)> |
1516 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1517 | | CallbackForward(x2), CallbackForward(x3), |
1518 | | CallbackForward(x4), CallbackForward(x5)); |
1519 | | } |
1520 | | }; |
1521 | | |
1522 | | // Arity 5 -> 4. |
1523 | | template <typename StorageType, typename R,typename X1, typename X2, |
1524 | | typename X3, typename X4, typename X5> |
1525 | | struct Invoker<1, StorageType, R(X1, X2, X3, X4, X5)> { |
1526 | | typedef R(RunType)(BindStateBase*, |
1527 | | typename CallbackParamTraits<X2>::ForwardType, |
1528 | | typename CallbackParamTraits<X3>::ForwardType, |
1529 | | typename CallbackParamTraits<X4>::ForwardType, |
1530 | | typename CallbackParamTraits<X5>::ForwardType); |
1531 | | |
1532 | | typedef R(UnboundRunType)(X2, X3, X4, X5); |
1533 | | |
1534 | | static R Run(BindStateBase* base, |
1535 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1536 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1537 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1538 | | typename CallbackParamTraits<X5>::ForwardType x5) { |
1539 | | StorageType* storage = static_cast<StorageType*>(base); |
1540 | | |
1541 | | // Local references to make debugger stepping easier. If in a debugger, |
1542 | | // you really want to warp ahead and step through the |
1543 | | // InvokeHelper<>::MakeItSo() call below. |
1544 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1545 | | |
1546 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1547 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1548 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1549 | | typename StorageType::RunnableType, |
1550 | | void(typename Bound1UnwrapTraits::ForwardType, |
1551 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1552 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1553 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1554 | | typename CallbackParamTraits<X5>::ForwardType x5)> |
1555 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1556 | | CallbackForward(x2), CallbackForward(x3), |
1557 | | CallbackForward(x4), CallbackForward(x5)); |
1558 | | } |
1559 | | }; |
1560 | | |
1561 | | // Arity 5 -> 3. |
1562 | | template <typename StorageType, typename R,typename X1, typename X2, |
1563 | | typename X3, typename X4, typename X5> |
1564 | | struct Invoker<2, StorageType, R(X1, X2, X3, X4, X5)> { |
1565 | | typedef R(RunType)(BindStateBase*, |
1566 | | typename CallbackParamTraits<X3>::ForwardType, |
1567 | | typename CallbackParamTraits<X4>::ForwardType, |
1568 | | typename CallbackParamTraits<X5>::ForwardType); |
1569 | | |
1570 | | typedef R(UnboundRunType)(X3, X4, X5); |
1571 | | |
1572 | | static R Run(BindStateBase* base, |
1573 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1574 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1575 | | typename CallbackParamTraits<X5>::ForwardType x5) { |
1576 | | StorageType* storage = static_cast<StorageType*>(base); |
1577 | | |
1578 | | // Local references to make debugger stepping easier. If in a debugger, |
1579 | | // you really want to warp ahead and step through the |
1580 | | // InvokeHelper<>::MakeItSo() call below. |
1581 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1582 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1583 | | |
1584 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1585 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1586 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1587 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1588 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1589 | | typename StorageType::RunnableType, |
1590 | | void(typename Bound1UnwrapTraits::ForwardType, |
1591 | | typename Bound2UnwrapTraits::ForwardType, |
1592 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1593 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1594 | | typename CallbackParamTraits<X5>::ForwardType x5)> |
1595 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1596 | | CallbackForward(x2), CallbackForward(x3), |
1597 | | CallbackForward(x4), CallbackForward(x5)); |
1598 | | } |
1599 | | }; |
1600 | | |
1601 | | // Arity 5 -> 2. |
1602 | | template <typename StorageType, typename R,typename X1, typename X2, |
1603 | | typename X3, typename X4, typename X5> |
1604 | | struct Invoker<3, StorageType, R(X1, X2, X3, X4, X5)> { |
1605 | | typedef R(RunType)(BindStateBase*, |
1606 | | typename CallbackParamTraits<X4>::ForwardType, |
1607 | | typename CallbackParamTraits<X5>::ForwardType); |
1608 | | |
1609 | | typedef R(UnboundRunType)(X4, X5); |
1610 | | |
1611 | | static R Run(BindStateBase* base, |
1612 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1613 | | typename CallbackParamTraits<X5>::ForwardType x5) { |
1614 | | StorageType* storage = static_cast<StorageType*>(base); |
1615 | | |
1616 | | // Local references to make debugger stepping easier. If in a debugger, |
1617 | | // you really want to warp ahead and step through the |
1618 | | // InvokeHelper<>::MakeItSo() call below. |
1619 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1620 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1621 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1622 | | |
1623 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1624 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1625 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1626 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1627 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1628 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1629 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1630 | | typename StorageType::RunnableType, |
1631 | | void(typename Bound1UnwrapTraits::ForwardType, |
1632 | | typename Bound2UnwrapTraits::ForwardType, |
1633 | | typename Bound3UnwrapTraits::ForwardType, |
1634 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1635 | | typename CallbackParamTraits<X5>::ForwardType x5)> |
1636 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1637 | | CallbackForward(x2), CallbackForward(x3), |
1638 | | CallbackForward(x4), CallbackForward(x5)); |
1639 | | } |
1640 | | }; |
1641 | | |
1642 | | // Arity 5 -> 1. |
1643 | | template <typename StorageType, typename R,typename X1, typename X2, |
1644 | | typename X3, typename X4, typename X5> |
1645 | | struct Invoker<4, StorageType, R(X1, X2, X3, X4, X5)> { |
1646 | | typedef R(RunType)(BindStateBase*, |
1647 | | typename CallbackParamTraits<X5>::ForwardType); |
1648 | | |
1649 | | typedef R(UnboundRunType)(X5); |
1650 | | |
1651 | | static R Run(BindStateBase* base, |
1652 | 0 | typename CallbackParamTraits<X5>::ForwardType x5) { |
1653 | 0 | StorageType* storage = static_cast<StorageType*>(base); |
1654 | | |
1655 | | // Local references to make debugger stepping easier. If in a debugger, |
1656 | | // you really want to warp ahead and step through the |
1657 | | // InvokeHelper<>::MakeItSo() call below. |
1658 | 0 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1659 | 0 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1660 | 0 | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1661 | 0 | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
1662 | |
|
1663 | 0 | typename Bound1UnwrapTraits::ForwardType x1 = |
1664 | 0 | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1665 | 0 | typename Bound2UnwrapTraits::ForwardType x2 = |
1666 | 0 | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1667 | 0 | typename Bound3UnwrapTraits::ForwardType x3 = |
1668 | 0 | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1669 | 0 | typename Bound4UnwrapTraits::ForwardType x4 = |
1670 | 0 | Bound4UnwrapTraits::Unwrap(storage->p4_); |
1671 | 0 | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1672 | 0 | typename StorageType::RunnableType, |
1673 | 0 | void(typename Bound1UnwrapTraits::ForwardType, |
1674 | 0 | typename Bound2UnwrapTraits::ForwardType, |
1675 | 0 | typename Bound3UnwrapTraits::ForwardType, |
1676 | 0 | typename Bound4UnwrapTraits::ForwardType, |
1677 | 0 | typename CallbackParamTraits<X5>::ForwardType x5)> |
1678 | 0 | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1679 | 0 | CallbackForward(x2), CallbackForward(x3), |
1680 | 0 | CallbackForward(x4), CallbackForward(x5)); |
1681 | 0 | } Unexecuted instantiation: _ZN2yb8internal7InvokerILi4ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEERKNS7_10shared_ptrINS7_6vectorINS_6client11YBTableInfoENSB_ISJ_EEEEEERKNS7_13unordered_mapISD_SD_NS7_4hashISD_EENS7_8equal_toISD_EENSB_INS7_4pairISE_SD_EEEEEERKNS_6StatusEEEEFvPS6_SF_SO_SZ_S12_EFvNS0_17UnretainedWrapperIS6_EESD_SM_SX_EEES17_E3RunEPNS0_13BindStateBaseES12_ Unexecuted instantiation: _ZN2yb8internal7InvokerILi4ENS0_9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEERKNS7_10shared_ptrINS_6client11YBTableInfoEEERKNS7_13unordered_mapISD_SD_NS7_4hashISD_EENS7_8equal_toISD_EENSB_INS7_4pairISE_SD_EEEEEERKNS_6StatusEEEEFvPS6_SF_SL_SW_SZ_EFvNS0_17UnretainedWrapperIS6_EESD_SJ_SU_EEES14_E3RunEPNS0_13BindStateBaseESZ_ |
1682 | | }; |
1683 | | |
1684 | | // Arity 5 -> 0. |
1685 | | template <typename StorageType, typename R,typename X1, typename X2, |
1686 | | typename X3, typename X4, typename X5> |
1687 | | struct Invoker<5, StorageType, R(X1, X2, X3, X4, X5)> { |
1688 | | typedef R(RunType)(BindStateBase*); |
1689 | | |
1690 | | typedef R(UnboundRunType)(); |
1691 | | |
1692 | | static R Run(BindStateBase* base) { |
1693 | | StorageType* storage = static_cast<StorageType*>(base); |
1694 | | |
1695 | | // Local references to make debugger stepping easier. If in a debugger, |
1696 | | // you really want to warp ahead and step through the |
1697 | | // InvokeHelper<>::MakeItSo() call below. |
1698 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1699 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1700 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1701 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
1702 | | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
1703 | | |
1704 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1705 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1706 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1707 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1708 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1709 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1710 | | typename Bound4UnwrapTraits::ForwardType x4 = |
1711 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
1712 | | typename Bound5UnwrapTraits::ForwardType x5 = |
1713 | | Bound5UnwrapTraits::Unwrap(storage->p5_); |
1714 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1715 | | typename StorageType::RunnableType, |
1716 | | void(typename Bound1UnwrapTraits::ForwardType, |
1717 | | typename Bound2UnwrapTraits::ForwardType, |
1718 | | typename Bound3UnwrapTraits::ForwardType, |
1719 | | typename Bound4UnwrapTraits::ForwardType, |
1720 | | typename Bound5UnwrapTraits::ForwardType)> |
1721 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1722 | | CallbackForward(x2), CallbackForward(x3), |
1723 | | CallbackForward(x4), CallbackForward(x5)); |
1724 | | } |
1725 | | }; |
1726 | | |
1727 | | // Arity 6 -> 6. |
1728 | | template <typename StorageType, typename R,typename X1, typename X2, |
1729 | | typename X3, typename X4, typename X5, typename X6> |
1730 | | struct Invoker<0, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1731 | | typedef R(RunType)(BindStateBase*, |
1732 | | typename CallbackParamTraits<X1>::ForwardType, |
1733 | | typename CallbackParamTraits<X2>::ForwardType, |
1734 | | typename CallbackParamTraits<X3>::ForwardType, |
1735 | | typename CallbackParamTraits<X4>::ForwardType, |
1736 | | typename CallbackParamTraits<X5>::ForwardType, |
1737 | | typename CallbackParamTraits<X6>::ForwardType); |
1738 | | |
1739 | | typedef R(UnboundRunType)(X1, X2, X3, X4, X5, X6); |
1740 | | |
1741 | | static R Run(BindStateBase* base, |
1742 | | typename CallbackParamTraits<X1>::ForwardType x1, |
1743 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1744 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1745 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1746 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1747 | | typename CallbackParamTraits<X6>::ForwardType x6) { |
1748 | | StorageType* storage = static_cast<StorageType*>(base); |
1749 | | |
1750 | | // Local references to make debugger stepping easier. If in a debugger, |
1751 | | // you really want to warp ahead and step through the |
1752 | | // InvokeHelper<>::MakeItSo() call below. |
1753 | | |
1754 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1755 | | typename StorageType::RunnableType, |
1756 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
1757 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1758 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1759 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1760 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1761 | | typename CallbackParamTraits<X6>::ForwardType x6)> |
1762 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1763 | | CallbackForward(x2), CallbackForward(x3), |
1764 | | CallbackForward(x4), CallbackForward(x5), |
1765 | | CallbackForward(x6)); |
1766 | | } |
1767 | | }; |
1768 | | |
1769 | | // Arity 6 -> 5. |
1770 | | template <typename StorageType, typename R,typename X1, typename X2, |
1771 | | typename X3, typename X4, typename X5, typename X6> |
1772 | | struct Invoker<1, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1773 | | typedef R(RunType)(BindStateBase*, |
1774 | | typename CallbackParamTraits<X2>::ForwardType, |
1775 | | typename CallbackParamTraits<X3>::ForwardType, |
1776 | | typename CallbackParamTraits<X4>::ForwardType, |
1777 | | typename CallbackParamTraits<X5>::ForwardType, |
1778 | | typename CallbackParamTraits<X6>::ForwardType); |
1779 | | |
1780 | | typedef R(UnboundRunType)(X2, X3, X4, X5, X6); |
1781 | | |
1782 | | static R Run(BindStateBase* base, |
1783 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1784 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1785 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1786 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1787 | | typename CallbackParamTraits<X6>::ForwardType x6) { |
1788 | | StorageType* storage = static_cast<StorageType*>(base); |
1789 | | |
1790 | | // Local references to make debugger stepping easier. If in a debugger, |
1791 | | // you really want to warp ahead and step through the |
1792 | | // InvokeHelper<>::MakeItSo() call below. |
1793 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1794 | | |
1795 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1796 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1797 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1798 | | typename StorageType::RunnableType, |
1799 | | void(typename Bound1UnwrapTraits::ForwardType, |
1800 | | typename CallbackParamTraits<X2>::ForwardType x2, |
1801 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1802 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1803 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1804 | | typename CallbackParamTraits<X6>::ForwardType x6)> |
1805 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1806 | | CallbackForward(x2), CallbackForward(x3), |
1807 | | CallbackForward(x4), CallbackForward(x5), |
1808 | | CallbackForward(x6)); |
1809 | | } |
1810 | | }; |
1811 | | |
1812 | | // Arity 6 -> 4. |
1813 | | template <typename StorageType, typename R,typename X1, typename X2, |
1814 | | typename X3, typename X4, typename X5, typename X6> |
1815 | | struct Invoker<2, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1816 | | typedef R(RunType)(BindStateBase*, |
1817 | | typename CallbackParamTraits<X3>::ForwardType, |
1818 | | typename CallbackParamTraits<X4>::ForwardType, |
1819 | | typename CallbackParamTraits<X5>::ForwardType, |
1820 | | typename CallbackParamTraits<X6>::ForwardType); |
1821 | | |
1822 | | typedef R(UnboundRunType)(X3, X4, X5, X6); |
1823 | | |
1824 | | static R Run(BindStateBase* base, |
1825 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1826 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1827 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1828 | | typename CallbackParamTraits<X6>::ForwardType x6) { |
1829 | | StorageType* storage = static_cast<StorageType*>(base); |
1830 | | |
1831 | | // Local references to make debugger stepping easier. If in a debugger, |
1832 | | // you really want to warp ahead and step through the |
1833 | | // InvokeHelper<>::MakeItSo() call below. |
1834 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1835 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1836 | | |
1837 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1838 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1839 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1840 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1841 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1842 | | typename StorageType::RunnableType, |
1843 | | void(typename Bound1UnwrapTraits::ForwardType, |
1844 | | typename Bound2UnwrapTraits::ForwardType, |
1845 | | typename CallbackParamTraits<X3>::ForwardType x3, |
1846 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1847 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1848 | | typename CallbackParamTraits<X6>::ForwardType x6)> |
1849 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1850 | | CallbackForward(x2), CallbackForward(x3), |
1851 | | CallbackForward(x4), CallbackForward(x5), |
1852 | | CallbackForward(x6)); |
1853 | | } |
1854 | | }; |
1855 | | |
1856 | | // Arity 6 -> 3. |
1857 | | template <typename StorageType, typename R,typename X1, typename X2, |
1858 | | typename X3, typename X4, typename X5, typename X6> |
1859 | | struct Invoker<3, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1860 | | typedef R(RunType)(BindStateBase*, |
1861 | | typename CallbackParamTraits<X4>::ForwardType, |
1862 | | typename CallbackParamTraits<X5>::ForwardType, |
1863 | | typename CallbackParamTraits<X6>::ForwardType); |
1864 | | |
1865 | | typedef R(UnboundRunType)(X4, X5, X6); |
1866 | | |
1867 | | static R Run(BindStateBase* base, |
1868 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1869 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1870 | | typename CallbackParamTraits<X6>::ForwardType x6) { |
1871 | | StorageType* storage = static_cast<StorageType*>(base); |
1872 | | |
1873 | | // Local references to make debugger stepping easier. If in a debugger, |
1874 | | // you really want to warp ahead and step through the |
1875 | | // InvokeHelper<>::MakeItSo() call below. |
1876 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1877 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1878 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1879 | | |
1880 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1881 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1882 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1883 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1884 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1885 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1886 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1887 | | typename StorageType::RunnableType, |
1888 | | void(typename Bound1UnwrapTraits::ForwardType, |
1889 | | typename Bound2UnwrapTraits::ForwardType, |
1890 | | typename Bound3UnwrapTraits::ForwardType, |
1891 | | typename CallbackParamTraits<X4>::ForwardType x4, |
1892 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1893 | | typename CallbackParamTraits<X6>::ForwardType x6)> |
1894 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1895 | | CallbackForward(x2), CallbackForward(x3), |
1896 | | CallbackForward(x4), CallbackForward(x5), |
1897 | | CallbackForward(x6)); |
1898 | | } |
1899 | | }; |
1900 | | |
1901 | | // Arity 6 -> 2. |
1902 | | template <typename StorageType, typename R,typename X1, typename X2, |
1903 | | typename X3, typename X4, typename X5, typename X6> |
1904 | | struct Invoker<4, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1905 | | typedef R(RunType)(BindStateBase*, |
1906 | | typename CallbackParamTraits<X5>::ForwardType, |
1907 | | typename CallbackParamTraits<X6>::ForwardType); |
1908 | | |
1909 | | typedef R(UnboundRunType)(X5, X6); |
1910 | | |
1911 | | static R Run(BindStateBase* base, |
1912 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1913 | | typename CallbackParamTraits<X6>::ForwardType x6) { |
1914 | | StorageType* storage = static_cast<StorageType*>(base); |
1915 | | |
1916 | | // Local references to make debugger stepping easier. If in a debugger, |
1917 | | // you really want to warp ahead and step through the |
1918 | | // InvokeHelper<>::MakeItSo() call below. |
1919 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1920 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1921 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1922 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
1923 | | |
1924 | | typename Bound1UnwrapTraits::ForwardType x1 = |
1925 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1926 | | typename Bound2UnwrapTraits::ForwardType x2 = |
1927 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1928 | | typename Bound3UnwrapTraits::ForwardType x3 = |
1929 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1930 | | typename Bound4UnwrapTraits::ForwardType x4 = |
1931 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
1932 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1933 | | typename StorageType::RunnableType, |
1934 | | void(typename Bound1UnwrapTraits::ForwardType, |
1935 | | typename Bound2UnwrapTraits::ForwardType, |
1936 | | typename Bound3UnwrapTraits::ForwardType, |
1937 | | typename Bound4UnwrapTraits::ForwardType, |
1938 | | typename CallbackParamTraits<X5>::ForwardType x5, |
1939 | | typename CallbackParamTraits<X6>::ForwardType x6)> |
1940 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1941 | | CallbackForward(x2), CallbackForward(x3), |
1942 | | CallbackForward(x4), CallbackForward(x5), |
1943 | | CallbackForward(x6)); |
1944 | | } |
1945 | | }; |
1946 | | |
1947 | | // Arity 6 -> 1. |
1948 | | template <typename StorageType, typename R,typename X1, typename X2, |
1949 | | typename X3, typename X4, typename X5, typename X6> |
1950 | | struct Invoker<5, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1951 | | typedef R(RunType)(BindStateBase*, |
1952 | | typename CallbackParamTraits<X6>::ForwardType); |
1953 | | |
1954 | | typedef R(UnboundRunType)(X6); |
1955 | | |
1956 | | static R Run(BindStateBase* base, |
1957 | 0 | typename CallbackParamTraits<X6>::ForwardType x6) { |
1958 | 0 | StorageType* storage = static_cast<StorageType*>(base); |
1959 | | |
1960 | | // Local references to make debugger stepping easier. If in a debugger, |
1961 | | // you really want to warp ahead and step through the |
1962 | | // InvokeHelper<>::MakeItSo() call below. |
1963 | 0 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
1964 | 0 | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
1965 | 0 | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
1966 | 0 | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
1967 | 0 | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
1968 | |
|
1969 | 0 | typename Bound1UnwrapTraits::ForwardType x1 = |
1970 | 0 | Bound1UnwrapTraits::Unwrap(storage->p1_); |
1971 | 0 | typename Bound2UnwrapTraits::ForwardType x2 = |
1972 | 0 | Bound2UnwrapTraits::Unwrap(storage->p2_); |
1973 | 0 | typename Bound3UnwrapTraits::ForwardType x3 = |
1974 | 0 | Bound3UnwrapTraits::Unwrap(storage->p3_); |
1975 | 0 | typename Bound4UnwrapTraits::ForwardType x4 = |
1976 | 0 | Bound4UnwrapTraits::Unwrap(storage->p4_); |
1977 | 0 | typename Bound5UnwrapTraits::ForwardType x5 = |
1978 | 0 | Bound5UnwrapTraits::Unwrap(storage->p5_); |
1979 | 0 | return InvokeHelper<StorageType::IsWeakCall::value, R, |
1980 | 0 | typename StorageType::RunnableType, |
1981 | 0 | void(typename Bound1UnwrapTraits::ForwardType, |
1982 | 0 | typename Bound2UnwrapTraits::ForwardType, |
1983 | 0 | typename Bound3UnwrapTraits::ForwardType, |
1984 | 0 | typename Bound4UnwrapTraits::ForwardType, |
1985 | 0 | typename Bound5UnwrapTraits::ForwardType, |
1986 | 0 | typename CallbackParamTraits<X6>::ForwardType x6)> |
1987 | 0 | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
1988 | 0 | CallbackForward(x2), CallbackForward(x3), |
1989 | 0 | CallbackForward(x4), CallbackForward(x5), |
1990 | 0 | CallbackForward(x6)); |
1991 | 0 | } |
1992 | | }; |
1993 | | |
1994 | | // Arity 6 -> 0. |
1995 | | template <typename StorageType, typename R,typename X1, typename X2, |
1996 | | typename X3, typename X4, typename X5, typename X6> |
1997 | | struct Invoker<6, StorageType, R(X1, X2, X3, X4, X5, X6)> { |
1998 | | typedef R(RunType)(BindStateBase*); |
1999 | | |
2000 | | typedef R(UnboundRunType)(); |
2001 | | |
2002 | 42.9k | static R Run(BindStateBase* base) { |
2003 | 42.9k | StorageType* storage = static_cast<StorageType*>(base); |
2004 | | |
2005 | | // Local references to make debugger stepping easier. If in a debugger, |
2006 | | // you really want to warp ahead and step through the |
2007 | | // InvokeHelper<>::MakeItSo() call below. |
2008 | 42.9k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2009 | 42.9k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2010 | 42.9k | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2011 | 42.9k | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
2012 | 42.9k | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
2013 | 42.9k | typedef typename StorageType::Bound6UnwrapTraits Bound6UnwrapTraits; |
2014 | | |
2015 | 42.9k | typename Bound1UnwrapTraits::ForwardType x1 = |
2016 | 42.9k | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2017 | 42.9k | typename Bound2UnwrapTraits::ForwardType x2 = |
2018 | 42.9k | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2019 | 42.9k | typename Bound3UnwrapTraits::ForwardType x3 = |
2020 | 42.9k | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2021 | 42.9k | typename Bound4UnwrapTraits::ForwardType x4 = |
2022 | 42.9k | Bound4UnwrapTraits::Unwrap(storage->p4_); |
2023 | 42.9k | typename Bound5UnwrapTraits::ForwardType x5 = |
2024 | 42.9k | Bound5UnwrapTraits::Unwrap(storage->p5_); |
2025 | 42.9k | typename Bound6UnwrapTraits::ForwardType x6 = |
2026 | 42.9k | Bound6UnwrapTraits::Unwrap(storage->p6_); |
2027 | 42.9k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2028 | 42.9k | typename StorageType::RunnableType, |
2029 | 42.9k | void(typename Bound1UnwrapTraits::ForwardType, |
2030 | 42.9k | typename Bound2UnwrapTraits::ForwardType, |
2031 | 42.9k | typename Bound3UnwrapTraits::ForwardType, |
2032 | 42.9k | typename Bound4UnwrapTraits::ForwardType, |
2033 | 42.9k | typename Bound5UnwrapTraits::ForwardType, |
2034 | 42.9k | typename Bound6UnwrapTraits::ForwardType)> |
2035 | 42.9k | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2036 | 42.9k | CallbackForward(x2), CallbackForward(x3), |
2037 | 42.9k | CallbackForward(x4), CallbackForward(x5), |
2038 | 42.9k | CallbackForward(x6)); |
2039 | 42.9k | } |
2040 | | }; |
2041 | | |
2042 | | // Arity 7 -> 7. |
2043 | | template <typename StorageType, typename R,typename X1, typename X2, |
2044 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2045 | | struct Invoker<0, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2046 | | typedef R(RunType)(BindStateBase*, |
2047 | | typename CallbackParamTraits<X1>::ForwardType, |
2048 | | typename CallbackParamTraits<X2>::ForwardType, |
2049 | | typename CallbackParamTraits<X3>::ForwardType, |
2050 | | typename CallbackParamTraits<X4>::ForwardType, |
2051 | | typename CallbackParamTraits<X5>::ForwardType, |
2052 | | typename CallbackParamTraits<X6>::ForwardType, |
2053 | | typename CallbackParamTraits<X7>::ForwardType); |
2054 | | |
2055 | | typedef R(UnboundRunType)(X1, X2, X3, X4, X5, X6, X7); |
2056 | | |
2057 | | static R Run(BindStateBase* base, |
2058 | | typename CallbackParamTraits<X1>::ForwardType x1, |
2059 | | typename CallbackParamTraits<X2>::ForwardType x2, |
2060 | | typename CallbackParamTraits<X3>::ForwardType x3, |
2061 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2062 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2063 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2064 | | typename CallbackParamTraits<X7>::ForwardType x7) { |
2065 | | StorageType* storage = static_cast<StorageType*>(base); |
2066 | | |
2067 | | // Local references to make debugger stepping easier. If in a debugger, |
2068 | | // you really want to warp ahead and step through the |
2069 | | // InvokeHelper<>::MakeItSo() call below. |
2070 | | |
2071 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2072 | | typename StorageType::RunnableType, |
2073 | | void(typename CallbackParamTraits<X1>::ForwardType x1, |
2074 | | typename CallbackParamTraits<X2>::ForwardType x2, |
2075 | | typename CallbackParamTraits<X3>::ForwardType x3, |
2076 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2077 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2078 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2079 | | typename CallbackParamTraits<X7>::ForwardType x7)> |
2080 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2081 | | CallbackForward(x2), CallbackForward(x3), |
2082 | | CallbackForward(x4), CallbackForward(x5), |
2083 | | CallbackForward(x6), CallbackForward(x7)); |
2084 | | } |
2085 | | }; |
2086 | | |
2087 | | // Arity 7 -> 6. |
2088 | | template <typename StorageType, typename R,typename X1, typename X2, |
2089 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2090 | | struct Invoker<1, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2091 | | typedef R(RunType)(BindStateBase*, |
2092 | | typename CallbackParamTraits<X2>::ForwardType, |
2093 | | typename CallbackParamTraits<X3>::ForwardType, |
2094 | | typename CallbackParamTraits<X4>::ForwardType, |
2095 | | typename CallbackParamTraits<X5>::ForwardType, |
2096 | | typename CallbackParamTraits<X6>::ForwardType, |
2097 | | typename CallbackParamTraits<X7>::ForwardType); |
2098 | | |
2099 | | typedef R(UnboundRunType)(X2, X3, X4, X5, X6, X7); |
2100 | | |
2101 | | static R Run(BindStateBase* base, |
2102 | | typename CallbackParamTraits<X2>::ForwardType x2, |
2103 | | typename CallbackParamTraits<X3>::ForwardType x3, |
2104 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2105 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2106 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2107 | 0 | typename CallbackParamTraits<X7>::ForwardType x7) { |
2108 | 0 | StorageType* storage = static_cast<StorageType*>(base); |
2109 | | |
2110 | | // Local references to make debugger stepping easier. If in a debugger, |
2111 | | // you really want to warp ahead and step through the |
2112 | | // InvokeHelper<>::MakeItSo() call below. |
2113 | 0 | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2114 | |
|
2115 | 0 | typename Bound1UnwrapTraits::ForwardType x1 = |
2116 | 0 | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2117 | 0 | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2118 | 0 | typename StorageType::RunnableType, |
2119 | 0 | void(typename Bound1UnwrapTraits::ForwardType, |
2120 | 0 | typename CallbackParamTraits<X2>::ForwardType x2, |
2121 | 0 | typename CallbackParamTraits<X3>::ForwardType x3, |
2122 | 0 | typename CallbackParamTraits<X4>::ForwardType x4, |
2123 | 0 | typename CallbackParamTraits<X5>::ForwardType x5, |
2124 | 0 | typename CallbackParamTraits<X6>::ForwardType x6, |
2125 | 0 | typename CallbackParamTraits<X7>::ForwardType x7)> |
2126 | 0 | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2127 | 0 | CallbackForward(x2), CallbackForward(x3), |
2128 | 0 | CallbackForward(x4), CallbackForward(x5), |
2129 | 0 | CallbackForward(x6), CallbackForward(x7)); |
2130 | 0 | } |
2131 | | }; |
2132 | | |
2133 | | // Arity 7 -> 5. |
2134 | | template <typename StorageType, typename R,typename X1, typename X2, |
2135 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2136 | | struct Invoker<2, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2137 | | typedef R(RunType)(BindStateBase*, |
2138 | | typename CallbackParamTraits<X3>::ForwardType, |
2139 | | typename CallbackParamTraits<X4>::ForwardType, |
2140 | | typename CallbackParamTraits<X5>::ForwardType, |
2141 | | typename CallbackParamTraits<X6>::ForwardType, |
2142 | | typename CallbackParamTraits<X7>::ForwardType); |
2143 | | |
2144 | | typedef R(UnboundRunType)(X3, X4, X5, X6, X7); |
2145 | | |
2146 | | static R Run(BindStateBase* base, |
2147 | | typename CallbackParamTraits<X3>::ForwardType x3, |
2148 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2149 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2150 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2151 | | typename CallbackParamTraits<X7>::ForwardType x7) { |
2152 | | StorageType* storage = static_cast<StorageType*>(base); |
2153 | | |
2154 | | // Local references to make debugger stepping easier. If in a debugger, |
2155 | | // you really want to warp ahead and step through the |
2156 | | // InvokeHelper<>::MakeItSo() call below. |
2157 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2158 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2159 | | |
2160 | | typename Bound1UnwrapTraits::ForwardType x1 = |
2161 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2162 | | typename Bound2UnwrapTraits::ForwardType x2 = |
2163 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2164 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2165 | | typename StorageType::RunnableType, |
2166 | | void(typename Bound1UnwrapTraits::ForwardType, |
2167 | | typename Bound2UnwrapTraits::ForwardType, |
2168 | | typename CallbackParamTraits<X3>::ForwardType x3, |
2169 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2170 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2171 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2172 | | typename CallbackParamTraits<X7>::ForwardType x7)> |
2173 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2174 | | CallbackForward(x2), CallbackForward(x3), |
2175 | | CallbackForward(x4), CallbackForward(x5), |
2176 | | CallbackForward(x6), CallbackForward(x7)); |
2177 | | } |
2178 | | }; |
2179 | | |
2180 | | // Arity 7 -> 4. |
2181 | | template <typename StorageType, typename R,typename X1, typename X2, |
2182 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2183 | | struct Invoker<3, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2184 | | typedef R(RunType)(BindStateBase*, |
2185 | | typename CallbackParamTraits<X4>::ForwardType, |
2186 | | typename CallbackParamTraits<X5>::ForwardType, |
2187 | | typename CallbackParamTraits<X6>::ForwardType, |
2188 | | typename CallbackParamTraits<X7>::ForwardType); |
2189 | | |
2190 | | typedef R(UnboundRunType)(X4, X5, X6, X7); |
2191 | | |
2192 | | static R Run(BindStateBase* base, |
2193 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2194 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2195 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2196 | | typename CallbackParamTraits<X7>::ForwardType x7) { |
2197 | | StorageType* storage = static_cast<StorageType*>(base); |
2198 | | |
2199 | | // Local references to make debugger stepping easier. If in a debugger, |
2200 | | // you really want to warp ahead and step through the |
2201 | | // InvokeHelper<>::MakeItSo() call below. |
2202 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2203 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2204 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2205 | | |
2206 | | typename Bound1UnwrapTraits::ForwardType x1 = |
2207 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2208 | | typename Bound2UnwrapTraits::ForwardType x2 = |
2209 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2210 | | typename Bound3UnwrapTraits::ForwardType x3 = |
2211 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2212 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2213 | | typename StorageType::RunnableType, |
2214 | | void(typename Bound1UnwrapTraits::ForwardType, |
2215 | | typename Bound2UnwrapTraits::ForwardType, |
2216 | | typename Bound3UnwrapTraits::ForwardType, |
2217 | | typename CallbackParamTraits<X4>::ForwardType x4, |
2218 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2219 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2220 | | typename CallbackParamTraits<X7>::ForwardType x7)> |
2221 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2222 | | CallbackForward(x2), CallbackForward(x3), |
2223 | | CallbackForward(x4), CallbackForward(x5), |
2224 | | CallbackForward(x6), CallbackForward(x7)); |
2225 | | } |
2226 | | }; |
2227 | | |
2228 | | // Arity 7 -> 3. |
2229 | | template <typename StorageType, typename R,typename X1, typename X2, |
2230 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2231 | | struct Invoker<4, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2232 | | typedef R(RunType)(BindStateBase*, |
2233 | | typename CallbackParamTraits<X5>::ForwardType, |
2234 | | typename CallbackParamTraits<X6>::ForwardType, |
2235 | | typename CallbackParamTraits<X7>::ForwardType); |
2236 | | |
2237 | | typedef R(UnboundRunType)(X5, X6, X7); |
2238 | | |
2239 | | static R Run(BindStateBase* base, |
2240 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2241 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2242 | | typename CallbackParamTraits<X7>::ForwardType x7) { |
2243 | | StorageType* storage = static_cast<StorageType*>(base); |
2244 | | |
2245 | | // Local references to make debugger stepping easier. If in a debugger, |
2246 | | // you really want to warp ahead and step through the |
2247 | | // InvokeHelper<>::MakeItSo() call below. |
2248 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2249 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2250 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2251 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
2252 | | |
2253 | | typename Bound1UnwrapTraits::ForwardType x1 = |
2254 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2255 | | typename Bound2UnwrapTraits::ForwardType x2 = |
2256 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2257 | | typename Bound3UnwrapTraits::ForwardType x3 = |
2258 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2259 | | typename Bound4UnwrapTraits::ForwardType x4 = |
2260 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
2261 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2262 | | typename StorageType::RunnableType, |
2263 | | void(typename Bound1UnwrapTraits::ForwardType, |
2264 | | typename Bound2UnwrapTraits::ForwardType, |
2265 | | typename Bound3UnwrapTraits::ForwardType, |
2266 | | typename Bound4UnwrapTraits::ForwardType, |
2267 | | typename CallbackParamTraits<X5>::ForwardType x5, |
2268 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2269 | | typename CallbackParamTraits<X7>::ForwardType x7)> |
2270 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2271 | | CallbackForward(x2), CallbackForward(x3), |
2272 | | CallbackForward(x4), CallbackForward(x5), |
2273 | | CallbackForward(x6), CallbackForward(x7)); |
2274 | | } |
2275 | | }; |
2276 | | |
2277 | | // Arity 7 -> 2. |
2278 | | template <typename StorageType, typename R,typename X1, typename X2, |
2279 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2280 | | struct Invoker<5, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2281 | | typedef R(RunType)(BindStateBase*, |
2282 | | typename CallbackParamTraits<X6>::ForwardType, |
2283 | | typename CallbackParamTraits<X7>::ForwardType); |
2284 | | |
2285 | | typedef R(UnboundRunType)(X6, X7); |
2286 | | |
2287 | | static R Run(BindStateBase* base, |
2288 | | typename CallbackParamTraits<X6>::ForwardType x6, |
2289 | 334k | typename CallbackParamTraits<X7>::ForwardType x7) { |
2290 | 334k | StorageType* storage = static_cast<StorageType*>(base); |
2291 | | |
2292 | | // Local references to make debugger stepping easier. If in a debugger, |
2293 | | // you really want to warp ahead and step through the |
2294 | | // InvokeHelper<>::MakeItSo() call below. |
2295 | 334k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2296 | 334k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2297 | 334k | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2298 | 334k | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
2299 | 334k | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
2300 | | |
2301 | 334k | typename Bound1UnwrapTraits::ForwardType x1 = |
2302 | 334k | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2303 | 334k | typename Bound2UnwrapTraits::ForwardType x2 = |
2304 | 334k | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2305 | 334k | typename Bound3UnwrapTraits::ForwardType x3 = |
2306 | 334k | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2307 | 334k | typename Bound4UnwrapTraits::ForwardType x4 = |
2308 | 334k | Bound4UnwrapTraits::Unwrap(storage->p4_); |
2309 | 334k | typename Bound5UnwrapTraits::ForwardType x5 = |
2310 | 334k | Bound5UnwrapTraits::Unwrap(storage->p5_); |
2311 | 334k | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2312 | 334k | typename StorageType::RunnableType, |
2313 | 334k | void(typename Bound1UnwrapTraits::ForwardType, |
2314 | 334k | typename Bound2UnwrapTraits::ForwardType, |
2315 | 334k | typename Bound3UnwrapTraits::ForwardType, |
2316 | 334k | typename Bound4UnwrapTraits::ForwardType, |
2317 | 334k | typename Bound5UnwrapTraits::ForwardType, |
2318 | 334k | typename CallbackParamTraits<X6>::ForwardType x6, |
2319 | 334k | typename CallbackParamTraits<X7>::ForwardType x7)> |
2320 | 334k | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2321 | 334k | CallbackForward(x2), CallbackForward(x3), |
2322 | 334k | CallbackForward(x4), CallbackForward(x5), |
2323 | 334k | CallbackForward(x6), CallbackForward(x7)); |
2324 | 334k | } _ZN2yb8internal7InvokerILi5ENS0_9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS4_19StatementParametersEPKNS4_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS6_10shared_ptrINS4_14ExecutedResultEEEEEESO_ST_EEEFvPS5_SE_SH_SK_SV_SO_ST_EFvNS0_17UnretainedWrapperIS5_EENS0_15ConstRefWrapperISC_EENS13_ISF_EENS0_12OwnedWrapperISJ_EESV_EEES10_E3RunEPNS0_13BindStateBaseESO_ST_ Line | Count | Source | 2289 | 330k | typename CallbackParamTraits<X7>::ForwardType x7) { | 2290 | 330k | StorageType* storage = static_cast<StorageType*>(base); | 2291 | | | 2292 | | // Local references to make debugger stepping easier. If in a debugger, | 2293 | | // you really want to warp ahead and step through the | 2294 | | // InvokeHelper<>::MakeItSo() call below. | 2295 | 330k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 2296 | 330k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 2297 | 330k | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; | 2298 | 330k | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; | 2299 | 330k | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; | 2300 | | | 2301 | 330k | typename Bound1UnwrapTraits::ForwardType x1 = | 2302 | 330k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 2303 | 330k | typename Bound2UnwrapTraits::ForwardType x2 = | 2304 | 330k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 2305 | 330k | typename Bound3UnwrapTraits::ForwardType x3 = | 2306 | 330k | Bound3UnwrapTraits::Unwrap(storage->p3_); | 2307 | 330k | typename Bound4UnwrapTraits::ForwardType x4 = | 2308 | 330k | Bound4UnwrapTraits::Unwrap(storage->p4_); | 2309 | 330k | typename Bound5UnwrapTraits::ForwardType x5 = | 2310 | 330k | Bound5UnwrapTraits::Unwrap(storage->p5_); | 2311 | 330k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 2312 | 330k | typename StorageType::RunnableType, | 2313 | 330k | void(typename Bound1UnwrapTraits::ForwardType, | 2314 | 330k | typename Bound2UnwrapTraits::ForwardType, | 2315 | 330k | typename Bound3UnwrapTraits::ForwardType, | 2316 | 330k | typename Bound4UnwrapTraits::ForwardType, | 2317 | 330k | typename Bound5UnwrapTraits::ForwardType, | 2318 | 330k | typename CallbackParamTraits<X6>::ForwardType x6, | 2319 | 330k | typename CallbackParamTraits<X7>::ForwardType x7)> | 2320 | 330k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 2321 | 330k | CallbackForward(x2), CallbackForward(x3), | 2322 | 330k | CallbackForward(x4), CallbackForward(x5), | 2323 | 330k | CallbackForward(x6), CallbackForward(x7)); | 2324 | 330k | } |
Unexecuted instantiation: _ZN2yb8internal7InvokerILi5ENS0_9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS4_19StatementParametersEPKNS4_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS6_10shared_ptrINS4_14ExecutedResultEEEEEESO_ST_EEEFvPS5_SE_SH_SK_SV_SO_ST_EFvNS0_17UnretainedWrapperIS5_EENS0_15ConstRefWrapperISC_EENS13_ISF_EENS11_ISI_EESV_EEES10_E3RunEPNS0_13BindStateBaseESO_ST_ _ZN2yb8internal7InvokerILi5ENS0_9BindStateINS0_15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS5_16YsckTabletServerEEERKNSB_INS_13BlockingQueueINSA_4pairINS_6SchemaENSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSO_RKNS5_15ChecksumOptionsERKNS_6StatusEyEEES13_FvS7_SD_SS_SO_SX_EEES13_E3RunEPNS0_13BindStateBaseES12_RKy Line | Count | Source | 2289 | 4.19k | typename CallbackParamTraits<X7>::ForwardType x7) { | 2290 | 4.19k | StorageType* storage = static_cast<StorageType*>(base); | 2291 | | | 2292 | | // Local references to make debugger stepping easier. If in a debugger, | 2293 | | // you really want to warp ahead and step through the | 2294 | | // InvokeHelper<>::MakeItSo() call below. | 2295 | 4.19k | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; | 2296 | 4.19k | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; | 2297 | 4.19k | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; | 2298 | 4.19k | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; | 2299 | 4.19k | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; | 2300 | | | 2301 | 4.19k | typename Bound1UnwrapTraits::ForwardType x1 = | 2302 | 4.19k | Bound1UnwrapTraits::Unwrap(storage->p1_); | 2303 | 4.19k | typename Bound2UnwrapTraits::ForwardType x2 = | 2304 | 4.19k | Bound2UnwrapTraits::Unwrap(storage->p2_); | 2305 | 4.19k | typename Bound3UnwrapTraits::ForwardType x3 = | 2306 | 4.19k | Bound3UnwrapTraits::Unwrap(storage->p3_); | 2307 | 4.19k | typename Bound4UnwrapTraits::ForwardType x4 = | 2308 | 4.19k | Bound4UnwrapTraits::Unwrap(storage->p4_); | 2309 | 4.19k | typename Bound5UnwrapTraits::ForwardType x5 = | 2310 | 4.19k | Bound5UnwrapTraits::Unwrap(storage->p5_); | 2311 | 4.19k | return InvokeHelper<StorageType::IsWeakCall::value, R, | 2312 | 4.19k | typename StorageType::RunnableType, | 2313 | 4.19k | void(typename Bound1UnwrapTraits::ForwardType, | 2314 | 4.19k | typename Bound2UnwrapTraits::ForwardType, | 2315 | 4.19k | typename Bound3UnwrapTraits::ForwardType, | 2316 | 4.19k | typename Bound4UnwrapTraits::ForwardType, | 2317 | 4.19k | typename Bound5UnwrapTraits::ForwardType, | 2318 | 4.19k | typename CallbackParamTraits<X6>::ForwardType x6, | 2319 | 4.19k | typename CallbackParamTraits<X7>::ForwardType x7)> | 2320 | 4.19k | ::MakeItSo(storage->runnable_, CallbackForward(x1), | 2321 | 4.19k | CallbackForward(x2), CallbackForward(x3), | 2322 | 4.19k | CallbackForward(x4), CallbackForward(x5), | 2323 | 4.19k | CallbackForward(x6), CallbackForward(x7)); | 2324 | 4.19k | } |
|
2325 | | }; |
2326 | | |
2327 | | // Arity 7 -> 1. |
2328 | | template <typename StorageType, typename R,typename X1, typename X2, |
2329 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2330 | | struct Invoker<6, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2331 | | typedef R(RunType)(BindStateBase*, |
2332 | | typename CallbackParamTraits<X7>::ForwardType); |
2333 | | |
2334 | | typedef R(UnboundRunType)(X7); |
2335 | | |
2336 | | static R Run(BindStateBase* base, |
2337 | | typename CallbackParamTraits<X7>::ForwardType x7) { |
2338 | | StorageType* storage = static_cast<StorageType*>(base); |
2339 | | |
2340 | | // Local references to make debugger stepping easier. If in a debugger, |
2341 | | // you really want to warp ahead and step through the |
2342 | | // InvokeHelper<>::MakeItSo() call below. |
2343 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2344 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2345 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2346 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
2347 | | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
2348 | | typedef typename StorageType::Bound6UnwrapTraits Bound6UnwrapTraits; |
2349 | | |
2350 | | typename Bound1UnwrapTraits::ForwardType x1 = |
2351 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2352 | | typename Bound2UnwrapTraits::ForwardType x2 = |
2353 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2354 | | typename Bound3UnwrapTraits::ForwardType x3 = |
2355 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2356 | | typename Bound4UnwrapTraits::ForwardType x4 = |
2357 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
2358 | | typename Bound5UnwrapTraits::ForwardType x5 = |
2359 | | Bound5UnwrapTraits::Unwrap(storage->p5_); |
2360 | | typename Bound6UnwrapTraits::ForwardType x6 = |
2361 | | Bound6UnwrapTraits::Unwrap(storage->p6_); |
2362 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2363 | | typename StorageType::RunnableType, |
2364 | | void(typename Bound1UnwrapTraits::ForwardType, |
2365 | | typename Bound2UnwrapTraits::ForwardType, |
2366 | | typename Bound3UnwrapTraits::ForwardType, |
2367 | | typename Bound4UnwrapTraits::ForwardType, |
2368 | | typename Bound5UnwrapTraits::ForwardType, |
2369 | | typename Bound6UnwrapTraits::ForwardType, |
2370 | | typename CallbackParamTraits<X7>::ForwardType x7)> |
2371 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2372 | | CallbackForward(x2), CallbackForward(x3), |
2373 | | CallbackForward(x4), CallbackForward(x5), |
2374 | | CallbackForward(x6), CallbackForward(x7)); |
2375 | | } |
2376 | | }; |
2377 | | |
2378 | | // Arity 7 -> 0. |
2379 | | template <typename StorageType, typename R,typename X1, typename X2, |
2380 | | typename X3, typename X4, typename X5, typename X6, typename X7> |
2381 | | struct Invoker<7, StorageType, R(X1, X2, X3, X4, X5, X6, X7)> { |
2382 | | typedef R(RunType)(BindStateBase*); |
2383 | | |
2384 | | typedef R(UnboundRunType)(); |
2385 | | |
2386 | | static R Run(BindStateBase* base) { |
2387 | | StorageType* storage = static_cast<StorageType*>(base); |
2388 | | |
2389 | | // Local references to make debugger stepping easier. If in a debugger, |
2390 | | // you really want to warp ahead and step through the |
2391 | | // InvokeHelper<>::MakeItSo() call below. |
2392 | | typedef typename StorageType::Bound1UnwrapTraits Bound1UnwrapTraits; |
2393 | | typedef typename StorageType::Bound2UnwrapTraits Bound2UnwrapTraits; |
2394 | | typedef typename StorageType::Bound3UnwrapTraits Bound3UnwrapTraits; |
2395 | | typedef typename StorageType::Bound4UnwrapTraits Bound4UnwrapTraits; |
2396 | | typedef typename StorageType::Bound5UnwrapTraits Bound5UnwrapTraits; |
2397 | | typedef typename StorageType::Bound6UnwrapTraits Bound6UnwrapTraits; |
2398 | | typedef typename StorageType::Bound7UnwrapTraits Bound7UnwrapTraits; |
2399 | | |
2400 | | typename Bound1UnwrapTraits::ForwardType x1 = |
2401 | | Bound1UnwrapTraits::Unwrap(storage->p1_); |
2402 | | typename Bound2UnwrapTraits::ForwardType x2 = |
2403 | | Bound2UnwrapTraits::Unwrap(storage->p2_); |
2404 | | typename Bound3UnwrapTraits::ForwardType x3 = |
2405 | | Bound3UnwrapTraits::Unwrap(storage->p3_); |
2406 | | typename Bound4UnwrapTraits::ForwardType x4 = |
2407 | | Bound4UnwrapTraits::Unwrap(storage->p4_); |
2408 | | typename Bound5UnwrapTraits::ForwardType x5 = |
2409 | | Bound5UnwrapTraits::Unwrap(storage->p5_); |
2410 | | typename Bound6UnwrapTraits::ForwardType x6 = |
2411 | | Bound6UnwrapTraits::Unwrap(storage->p6_); |
2412 | | typename Bound7UnwrapTraits::ForwardType x7 = |
2413 | | Bound7UnwrapTraits::Unwrap(storage->p7_); |
2414 | | return InvokeHelper<StorageType::IsWeakCall::value, R, |
2415 | | typename StorageType::RunnableType, |
2416 | | void(typename Bound1UnwrapTraits::ForwardType, |
2417 | | typename Bound2UnwrapTraits::ForwardType, |
2418 | | typename Bound3UnwrapTraits::ForwardType, |
2419 | | typename Bound4UnwrapTraits::ForwardType, |
2420 | | typename Bound5UnwrapTraits::ForwardType, |
2421 | | typename Bound6UnwrapTraits::ForwardType, |
2422 | | typename Bound7UnwrapTraits::ForwardType)> |
2423 | | ::MakeItSo(storage->runnable_, CallbackForward(x1), |
2424 | | CallbackForward(x2), CallbackForward(x3), |
2425 | | CallbackForward(x4), CallbackForward(x5), |
2426 | | CallbackForward(x6), CallbackForward(x7)); |
2427 | | } |
2428 | | }; |
2429 | | |
2430 | | |
2431 | | // BindState<> |
2432 | | // |
2433 | | // This stores all the state passed into Bind() and is also where most |
2434 | | // of the template resolution magic occurs. |
2435 | | // |
2436 | | // Runnable is the functor we are binding arguments to. |
2437 | | // RunType is type of the Run() function that the Invoker<> should use. |
2438 | | // Normally, this is the same as the RunType of the Runnable, but it can |
2439 | | // be different if an adapter like IgnoreResult() has been used. |
2440 | | // |
2441 | | // BoundArgsType contains the storage type for all the bound arguments by |
2442 | | // (ab)using a function type. |
2443 | | template <typename Runnable, typename RunType, typename BoundArgsType> |
2444 | | struct BindState; |
2445 | | |
2446 | | template <typename Runnable, typename RunType> |
2447 | | struct BindState<Runnable, RunType, void()> : public BindStateBase { |
2448 | | typedef Runnable RunnableType; |
2449 | | |
2450 | | typedef base::false_type IsWeakCall; |
2451 | | |
2452 | | typedef Invoker<0, BindState, RunType> InvokerType; |
2453 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2454 | 87.7k | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNS_6StatusEEEES6_FvvEEC2ES8_ Line | Count | Source | 2454 | 191 | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEES8_FvvEEC2ESA_ Line | Count | Source | 2454 | 29 | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFivEEES3_FvvEEC2ES5_ Line | Count | Source | 2454 | 1 | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEEES6_FvvEEC2ES8_ Line | Count | Source | 2454 | 3 | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyvEEES3_FvvEEC2ES5_ Line | Count | Source | 2454 | 87.5k | explicit BindState(Runnable runnable) : runnable_(std::move(runnable)) {} |
|
2455 | | |
2456 | 1.04k | virtual ~BindState() { } _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNS_6StatusEEEES6_FvvEED2Ev Line | Count | Source | 2456 | 191 | virtual ~BindState() { } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvNSt3__110shared_ptrINS_9consensus18StateChangeContextEEEEEES8_FvvEED2Ev Line | Count | Source | 2456 | 29 | virtual ~BindState() { } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFivEEES3_FvvEED2Ev Line | Count | Source | 2456 | 1 | virtual ~BindState() { } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_5debug15TraceBucketDataEEEES6_FvvEED2Ev Line | Count | Source | 2456 | 3 | virtual ~BindState() { } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyvEEES3_FvvEED2Ev Line | Count | Source | 2456 | 818 | virtual ~BindState() { } |
|
2457 | | |
2458 | | RunnableType runnable_; |
2459 | | }; |
2460 | | |
2461 | | template <typename Runnable, typename RunType, typename P1> |
2462 | | struct BindState<Runnable, RunType, void(P1)> : public BindStateBase { |
2463 | | typedef Runnable RunnableType; |
2464 | | |
2465 | | typedef base::false_type IsWeakCall; |
2466 | | |
2467 | | typedef Invoker<1, BindState, RunType> InvokerType; |
2468 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2469 | | |
2470 | | // Convenience typedefs for bound argument types. |
2471 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2472 | | |
2473 | | BindState(Runnable runnable, P1 p1) |
2474 | 1.60M | : runnable_(std::move(runnable)), p1_(std::move(p1)) { |
2475 | 1.60M | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2476 | 1.60M | } _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEESD_FvS7_EEC2ESF_S7_ Line | Count | Source | 2474 | 250 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 250 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 250 | } |
mt-log-test.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEEFvPS5_S8_EFvSC_EEC2ESB_SC_ Line | Count | Source | 2474 | 2.00k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 2.00k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 2.00k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEESB_FvS4_EEC2ESD_S4_ Line | Count | Source | 2474 | 395k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 395k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 395k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEEEFvPS3_S6_EFvNS0_17UnretainedWrapperIS3_EEEEC2ES9_SD_ Line | Count | Source | 2474 | 854k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 854k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 854k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3RefEFivEEEFiPS3_EFv13scoped_refptrIS3_EEEC2ES6_SA_ Line | Count | Source | 2474 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFiiPKcEEES5_FviEEC2ES7_i Line | Count | Source | 2474 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12RefCountableEKFvvEEEFvPKS3_EFvPS3_EEC2ES6_SA_ Line | Count | Source | 2474 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS_6StatusEEEEFvPS3_SC_SF_EFvNS0_17UnretainedWrapperINS_43FailureDetectorTest_TestDetectsFailure_TestEEEEEC2ESI_SN_ Line | Count | Source | 2474 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFxPiEEES4_FvNS0_17UnretainedWrapperIiEEEEC2ES6_S8_ Line | Count | Source | 2474 | 3 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 3 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 3 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFxxEEES3_FvxEEC2ES5_x Line | Count | Source | 2474 | 133 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 133 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 133 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3log3LogEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 96.9k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 96.9k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 96.9k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFNS_6StatusEvEEEFS5_PS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES8_SC_ Line | Count | Source | 2474 | 5.45k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 5.45k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 5.45k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 2.01k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 2.01k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 2.01k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master6MasterEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 5.42k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 5.42k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 5.42k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 34.2k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 34.2k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 34.2k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyyEEES3_FvyEEC2ES5_y Line | Count | Source | 2474 | 286 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 286 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 286 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFxvEEEFxPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 17.1k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 17.1k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 17.1k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server12LogicalClockEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 72 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 72 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 72 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyPKcEEES5_FvNS0_17UnretainedWrapperIS3_EEEEC2ES7_S9_ Line | Count | Source | 2474 | 105k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 105k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 105k | } |
heartbeater.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEESH_FvS8_EEC2ESJ_S8_ Line | Count | Source | 2474 | 5.72k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 5.72k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 5.72k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS4_S7_SE_EFvNS0_17UnretainedWrapperIS4_EEEEC2ESH_SL_ Line | Count | Source | 2474 | 17.0k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 17.0k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 17.0k | } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS8_mEEESC_FvNS0_17UnretainedWrapperIS4_EEEEC2ESE_SG_ _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEEFvPS5_S8_SB_EFvNS0_17UnretainedWrapperIS5_EEEEC2ESE_SI_ Line | Count | Source | 2474 | 28.8k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 28.8k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 28.8k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEEFvPS4_S9_bEFvNS0_17UnretainedWrapperIS4_EEEEC2ESC_SG_ Line | Count | Source | 2474 | 23 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 23 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 23 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_5debug8TraceLogEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 8 | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 8 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 8 | } |
thread.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEEC2ES7_SB_ Line | Count | Source | 2474 | 35.0k | : runnable_(std::move(runnable)), p1_(std::move(p1)) { | 2475 | 35.0k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2476 | 35.0k | } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEESA_FvS6_EEC2ESC_S6_ |
2477 | | |
2478 | 1.39M | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2479 | 1.39M | P1>::Release(p1_); } _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_9consensus12ReplicateMsgEEERKNS_6StatusEEEESD_FvS7_EED2Ev Line | Count | Source | 2478 | 250 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 250 | P1>::Release(p1_); } |
mt-log-test.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3log12_GLOBAL__N_119CustomLatchCallbackEFvRKNS_6StatusEEEEFvPS5_S8_EFvSC_EED2Ev Line | Count | Source | 2478 | 2.00k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 2.00k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerERKNS_6StatusERKNS_8HostPortEEEESB_FvS4_EED2Ev Line | Count | Source | 2478 | 395k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 395k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12SynchronizerEFvRKNS_6StatusEEEEFvPS3_S6_EFvNS0_17UnretainedWrapperIS3_EEEED2Ev Line | Count | Source | 2478 | 854k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 854k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3RefEFivEEEFiPS3_EFv13scoped_refptrIS3_EEED2Ev Line | Count | Source | 2478 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFiiPKcEEES5_FviEED2Ev Line | Count | Source | 2478 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12RefCountableEKFvvEEEFvPKS3_EFvPS3_EED2Ev Line | Count | Source | 2478 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_19FailureDetectorTestEFvRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS_6StatusEEEEFvPS3_SC_SF_EFvNS0_17UnretainedWrapperINS_43FailureDetectorTest_TestDetectsFailure_TestEEEEED2Ev Line | Count | Source | 2478 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFxPiEEES4_FvNS0_17UnretainedWrapperIiEEEED2Ev Line | Count | Source | 2478 | 3 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 3 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFxxEEES3_FvxEED2Ev Line | Count | Source | 2478 | 133 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 133 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_3log3LogEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 97.0k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 97.0k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFNS_6StatusEvEEEFS5_PS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 92 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 92 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master14CatalogManagerEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 2.00k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 2.00k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master6MasterEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 5.36k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 5.36k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 258 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 258 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyyEEES3_FvyEED2Ev Line | Count | Source | 2478 | 284 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 284 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server11HybridClockEFxvEEEFxPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 129 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 129 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6server12LogicalClockEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 28 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 28 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFyPKcEEES5_FvNS0_17UnretainedWrapperIS3_EEEED2Ev Line | Count | Source | 2478 | 972 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 972 | P1>::Release(p1_); } |
heartbeater.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRKNSt3__110shared_ptrINS_7tserver12_GLOBAL__N_120FindLeaderMasterDataEEERKNS_6StatusERKNS_8HostPortEEEESH_FvS8_EED2Ev Line | Count | Source | 2478 | 5.42k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 5.42k | P1>::Release(p1_); } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9cqlserver12CQLProcessorEFvRKNS_6StatusERKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS4_S7_SE_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_6client17YBLoggingCallbackENS_11LogSeverityEPKciPK2tmS8_mEEESC_FvNS0_17UnretainedWrapperIS4_EEEED2Ev _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6client8YBClient4DataEFvRKNS_6StatusERKNS_8HostPortEEEEFvPS5_S8_SB_EFvNS0_17UnretainedWrapperIS5_EEEED2Ev Line | Count | Source | 2478 | 27.2k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 27.2k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_5debug17TraceResultBufferEFvRK13scoped_refptrINS_16RefCountedStringEEbEEEFvPS4_S9_bEFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 23 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 23 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_5debug8TraceLogEFvvEEEFvPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 8 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 8 | P1>::Release(p1_); } |
thread.cc:_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_12_GLOBAL__N_19ThreadMgrEFyvEEEFyPS4_EFvNS0_17UnretainedWrapperIS4_EEEED2Ev Line | Count | Source | 2478 | 328 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2479 | 328 | P1>::Release(p1_); } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvNSt3__18weak_ptrINS_12SynchronizerEEERKNS_6StatusEEEESA_FvS6_EED2Ev |
2480 | | |
2481 | | RunnableType runnable_; |
2482 | | P1 p1_; |
2483 | | }; |
2484 | | |
2485 | | template <typename Runnable, typename RunType, typename P1, typename P2> |
2486 | | struct BindState<Runnable, RunType, void(P1, P2)> : public BindStateBase { |
2487 | | typedef Runnable RunnableType; |
2488 | | |
2489 | | typedef base::false_type IsWeakCall; |
2490 | | |
2491 | | typedef Invoker<2, BindState, RunType> InvokerType; |
2492 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2493 | | |
2494 | | // Convenience typedefs for bound argument types. |
2495 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2496 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2497 | | |
2498 | | BindState(Runnable runnable, P1 p1, P2 p2) |
2499 | 28.5M | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { |
2500 | 28.5M | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2501 | 28.5M | } _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS4_SA_S8_SH_EFvNS0_17UnretainedWrapperINS3_49SystemTableFaultTolerance_TestFaultTolerance_TestEEESA_EEC2ESK_SP_SA_ Line | Count | Source | 2499 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 1 | } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_SA_S8_SG_EFvNS0_17UnretainedWrapperIS4_EESA_EEC2ESJ_SN_SA_ _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EEC2ESK_SO_SB_ Line | Count | Source | 2499 | 4 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 4 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 4 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKcEEESD_FvSA_NS0_17UnretainedWrapperISB_EEEEC2ESF_SA_SH_ Line | Count | Source | 2499 | 2 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 2 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 2 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFviPiEEES4_S4_EC2ES6_iS3_ Line | Count | Source | 2499 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7PromiseIiEEFvRKiEEEFvPS4_S6_EFvNS0_17UnretainedWrapperIS4_EEiEEC2ES9_SD_i Line | Count | Source | 2499 | 1 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 1 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 1 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEEFvPS4_S7_SA_EFvNS0_17UnretainedWrapperIS4_EES5_EEC2ESD_SH_S5_ Line | Count | Source | 2499 | 13.1M | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 13.1M | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 13.1M | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS3_22MajorityReplicatedDataEEEEFvPS4_S7_EFvNS0_17UnretainedWrapperIS4_EES5_EEC2ESA_SE_S5_ Line | Count | Source | 2499 | 15.1M | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 15.1M | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 15.1M | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS3_EEESC_FvS4_S6_EEC2ESE_S4_S6_ Line | Count | Source | 2499 | 2.28k | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 2.28k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 2.28k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EEC2ESK_SO_SB_ Line | Count | Source | 2499 | 5.35k | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 5.35k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 5.35k | } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_SA_S8_SG_EFvNS0_17UnretainedWrapperIS4_EESA_EEC2ESJ_SN_SA_ _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EEC2ESK_SO_SB_ Line | Count | Source | 2499 | 83.1k | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 83.1k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 83.1k | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EEC2ESK_SO_SB_ Line | Count | Source | 2499 | 4 | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 4 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 4 | } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS9_EEESG_FvS4_SA_EEC2ESI_S4_SA_ Line | Count | Source | 2499 | 181k | : runnable_(std::move(runnable)), p1_(std::move(p1)), p2_(std::move(p2)) { | 2500 | 181k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2501 | 181k | } |
|
2502 | | |
2503 | 28.5M | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2504 | 28.5M | P1>::Release(p1_); } _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master25SystemTableFaultToleranceEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS_2ql14ExecutedResultEEEEEEFvPS4_SA_S8_SH_EFvNS0_17UnretainedWrapperINS3_49SystemTableFaultTolerance_TestFaultTolerance_TestEEESA_EED2Ev Line | Count | Source | 2503 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 1 | P1>::Release(p1_); } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLStatementEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_SA_S8_SG_EFvNS0_17UnretainedWrapperIS4_EESA_EED2Ev _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6tablet14TabletPeerTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EED2Ev Line | Count | Source | 2503 | 4 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 4 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKcEEESD_FvSA_NS0_17UnretainedWrapperISB_EEEED2Ev Line | Count | Source | 2503 | 2 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 2 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFviPiEEES4_S4_ED2Ev Line | Count | Source | 2503 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7PromiseIiEEFvRKiEEEFvPS4_S6_EFvNS0_17UnretainedWrapperIS4_EEiEED2Ev Line | Count | Source | 2503 | 1 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 1 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS_4OpIdERKNS_6StatusEEEEFvPS4_S7_SA_EFvNS0_17UnretainedWrapperIS4_EES5_EED2Ev Line | Count | Source | 2503 | 13.1M | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 13.1M | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_9consensus16PeerMessageQueueEFvRKNS3_22MajorityReplicatedDataEEEEFvPS4_S7_EFvNS0_17UnretainedWrapperIS4_EES5_EED2Ev Line | Count | Source | 2503 | 15.1M | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 15.1M | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_8HostPortEPNS_12SynchronizerERKNS_6StatusERKS3_EEESC_FvS4_S6_EED2Ev Line | Count | Source | 2503 | 2.28k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 2.28k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master15SysCatalogTableEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EED2Ev Line | Count | Source | 2503 | 90 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 90 | P1>::Release(p1_); } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql15TestQLProcessorEFvNS_8CallbackIFvRKNS_6StatusEEEES8_RKNSt3__110shared_ptrINS3_14ExecutedResultEEEEEEFvPS4_SA_S8_SG_EFvNS0_17UnretainedWrapperIS4_EESA_EED2Ev _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7tserver15TSTabletManagerEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EED2Ev Line | Count | Source | 2503 | 46.9k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 46.9k | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_7tserver26RemoteBootstrapSessionTestEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS5_10shared_ptrINS_9consensus18StateChangeContextEEEEEEFvPS4_SD_SH_EFvNS0_17UnretainedWrapperIS4_EESB_EED2Ev Line | Count | Source | 2503 | 4 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 4 | P1>::Release(p1_); } |
_ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvPNS_12SynchronizerEPNSt3__110shared_ptrINS_2ql14ExecutedResultEEERKNS_6StatusERKS9_EEESG_FvS4_SA_EED2Ev Line | Count | Source | 2503 | 181k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2504 | 181k | P1>::Release(p1_); } |
|
2505 | | |
2506 | | RunnableType runnable_; |
2507 | | P1 p1_; |
2508 | | P2 p2_; |
2509 | | }; |
2510 | | |
2511 | | template <typename Runnable, typename RunType, typename P1, typename P2, |
2512 | | typename P3> |
2513 | | struct BindState<Runnable, RunType, void(P1, P2, P3)> : public BindStateBase { |
2514 | | typedef Runnable RunnableType; |
2515 | | |
2516 | | typedef base::false_type IsWeakCall; |
2517 | | |
2518 | | typedef Invoker<3, BindState, RunType> InvokerType; |
2519 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2520 | | |
2521 | | // Convenience typedefs for bound argument types. |
2522 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2523 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2524 | | typedef UnwrapTraits<P3> Bound3UnwrapTraits; |
2525 | | |
2526 | | BindState(Runnable runnable, P1 p1, P2 p2, P3 p3) |
2527 | | : runnable_(std::move(runnable)), |
2528 | | p1_(std::move(p1)), |
2529 | | p2_(std::move(p2)), |
2530 | 13.1M | p3_(std::move(p3)) { |
2531 | 13.1M | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2532 | 13.1M | } |
2533 | | |
2534 | 13.1M | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2535 | 13.1M | P1>::Release(p1_); } |
2536 | | |
2537 | | RunnableType runnable_; |
2538 | | P1 p1_; |
2539 | | P2 p2_; |
2540 | | P3 p3_; |
2541 | | }; |
2542 | | |
2543 | | template <typename Runnable, typename RunType, typename P1, typename P2, |
2544 | | typename P3, typename P4> |
2545 | | struct BindState<Runnable, RunType, void(P1, P2, P3, |
2546 | | P4)> : public BindStateBase { |
2547 | | typedef Runnable RunnableType; |
2548 | | |
2549 | | typedef base::false_type IsWeakCall; |
2550 | | |
2551 | | typedef Invoker<4, BindState, RunType> InvokerType; |
2552 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2553 | | |
2554 | | // Convenience typedefs for bound argument types. |
2555 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2556 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2557 | | typedef UnwrapTraits<P3> Bound3UnwrapTraits; |
2558 | | typedef UnwrapTraits<P4> Bound4UnwrapTraits; |
2559 | | |
2560 | | BindState(Runnable runnable, P1 p1, P2 p2, const P3& p3, P4 p4) |
2561 | | : runnable_(std::move(runnable)), |
2562 | | p1_(std::move(p1)), |
2563 | | p2_(std::move(p2)), |
2564 | | p3_(p3), |
2565 | 0 | p4_(std::move(p4)) { |
2566 | 0 | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2567 | 0 | } Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SY_S11_EFvNS0_17UnretainedWrapperIS5_EESC_SL_SW_EEC2ES14_S18_SC_SN_SW_ Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS_6client11YBTableInfoEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SK_SV_SY_EFvNS0_17UnretainedWrapperIS5_EESC_SI_ST_EEC2ES11_S15_SC_SK_ST_ |
2568 | | |
2569 | 0 | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2570 | 0 | P1>::Release(p1_); } Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SY_S11_EFvNS0_17UnretainedWrapperIS5_EESC_SL_SW_EED2Ev Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS_6client11YBTableInfoEEERKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SK_SV_SY_EFvNS0_17UnretainedWrapperIS5_EESC_SI_ST_EED2Ev |
2571 | | |
2572 | | RunnableType runnable_; |
2573 | | P1 p1_; |
2574 | | P2 p2_; |
2575 | | P3 p3_; |
2576 | | P4 p4_; |
2577 | | }; |
2578 | | |
2579 | | template <typename Runnable, typename RunType, typename P1, typename P2, |
2580 | | typename P3, typename P4, typename P5> |
2581 | | struct BindState<Runnable, RunType, void(P1, P2, P3, P4, |
2582 | | P5)> : public BindStateBase { |
2583 | | typedef Runnable RunnableType; |
2584 | | |
2585 | | typedef base::false_type IsWeakCall; |
2586 | | |
2587 | | typedef Invoker<5, BindState, RunType> InvokerType; |
2588 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2589 | | |
2590 | | // Convenience typedefs for bound argument types. |
2591 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2592 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2593 | | typedef UnwrapTraits<P3> Bound3UnwrapTraits; |
2594 | | typedef UnwrapTraits<P4> Bound4UnwrapTraits; |
2595 | | typedef UnwrapTraits<P5> Bound5UnwrapTraits; |
2596 | | |
2597 | | BindState(Runnable runnable, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) |
2598 | | : runnable_(std::move(runnable)), |
2599 | | p1_(std::move(p1)), |
2600 | | p2_(std::move(p2)), |
2601 | | p3_(std::move(p3)), |
2602 | | p4_(std::move(p4)), |
2603 | 335k | p5_(std::move(p5)) { |
2604 | 335k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2605 | 335k | } Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEESE_RKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SE_SY_S11_EFvNS0_17UnretainedWrapperIS5_EESC_SL_SC_SW_EEC2ES14_S18_SC_SL_SC_SW_ _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_SJ_SU_SN_SS_EFvNS0_17UnretainedWrapperIS4_EENS0_15ConstRefWrapperISB_EENS12_ISE_EENS0_12OwnedWrapperISI_EESU_EEC2ESX_S11_S13_S14_S16_SU_ Line | Count | Source | 2603 | 331k | p5_(std::move(p5)) { | 2604 | 331k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2605 | 331k | } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_SJ_SU_SN_SS_EFvNS0_17UnretainedWrapperIS4_EENS0_15ConstRefWrapperISB_EENS12_ISE_EENS10_ISH_EESU_EEC2ESX_S11_S13_S14_S15_SU_ _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS4_16YsckTabletServerEEERKNSA_INS_13BlockingQueueINS9_4pairINS_6SchemaENS9_12basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSN_RKNS4_15ChecksumOptionsERKNS_6StatusEyEEES12_FvS6_SC_SR_SN_SW_EEC2ES14_S6_SC_SR_SN_SW_ Line | Count | Source | 2603 | 4.19k | p5_(std::move(p5)) { | 2604 | 4.19k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); | 2605 | 4.19k | } |
|
2606 | | |
2607 | 335k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2608 | 335k | P1>::Release(p1_); } Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_6master10enterprise14CatalogManagerEFvRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_10shared_ptrINS6_6vectorINS_6client11YBTableInfoENSA_ISI_EEEEEESE_RKNS6_13unordered_mapISC_SC_NS6_4hashISC_EENS6_8equal_toISC_EENSA_INS6_4pairISD_SC_EEEEEERKNS_6StatusEEEEFvPS5_SE_SN_SE_SY_S11_EFvNS0_17UnretainedWrapperIS5_EESC_SL_SC_SW_EED2Ev _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_SJ_SU_SN_SS_EFvNS0_17UnretainedWrapperIS4_EENS0_15ConstRefWrapperISB_EENS12_ISE_EENS0_12OwnedWrapperISI_EESU_EED2Ev Line | Count | Source | 2607 | 331k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2608 | 331k | P1>::Release(p1_); } |
Unexecuted instantiation: _ZN2yb8internal9BindStateINS0_15RunnableAdapterIMNS_2ql11QLProcessorEFvRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS3_19StatementParametersEPKNS3_9ParseTreeENS_8CallbackIFvRKNS_6StatusERKNS5_10shared_ptrINS3_14ExecutedResultEEEEEESN_SS_EEEFvPS4_SD_SG_SJ_SU_SN_SS_EFvNS0_17UnretainedWrapperIS4_EENS0_15ConstRefWrapperISB_EENS12_ISE_EENS10_ISH_EESU_EED2Ev _ZN2yb8internal9BindStateINS0_15RunnableAdapterIPFvRK13scoped_refptrINS_5tools22ChecksumResultReporterEERKNSt3__110shared_ptrINS4_16YsckTabletServerEEERKNSA_INS_13BlockingQueueINS9_4pairINS_6SchemaENS9_12basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEEEENS_18DefaultLogicalSizeEEEEERKSN_RKNS4_15ChecksumOptionsERKNS_6StatusEyEEES12_FvS6_SC_SR_SN_SW_EED2Ev Line | Count | Source | 2607 | 4.19k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, | 2608 | 4.19k | P1>::Release(p1_); } |
|
2609 | | |
2610 | | RunnableType runnable_; |
2611 | | P1 p1_; |
2612 | | P2 p2_; |
2613 | | P3 p3_; |
2614 | | P4 p4_; |
2615 | | P5 p5_; |
2616 | | }; |
2617 | | |
2618 | | template <typename Runnable, typename RunType, typename P1, typename P2, |
2619 | | typename P3, typename P4, typename P5, typename P6> |
2620 | | struct BindState<Runnable, RunType, void(P1, P2, P3, P4, P5, |
2621 | | P6)> : public BindStateBase { |
2622 | | typedef Runnable RunnableType; |
2623 | | |
2624 | | typedef base::false_type IsWeakCall; |
2625 | | |
2626 | | typedef Invoker<6, BindState, RunType> InvokerType; |
2627 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2628 | | |
2629 | | // Convenience typedefs for bound argument types. |
2630 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2631 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2632 | | typedef UnwrapTraits<P3> Bound3UnwrapTraits; |
2633 | | typedef UnwrapTraits<P4> Bound4UnwrapTraits; |
2634 | | typedef UnwrapTraits<P5> Bound5UnwrapTraits; |
2635 | | typedef UnwrapTraits<P6> Bound6UnwrapTraits; |
2636 | | |
2637 | | BindState(const Runnable& runnable, const P1& p1, const P2& p2, const P3& p3, |
2638 | | const P4& p4, const P5& p5, const P6& p6) |
2639 | | : runnable_(runnable), |
2640 | | p1_(p1), |
2641 | | p2_(p2), |
2642 | | p3_(p3), |
2643 | | p4_(p4), |
2644 | | p5_(p5), |
2645 | 42.9k | p6_(p6) { |
2646 | 42.9k | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2647 | 42.9k | } |
2648 | | |
2649 | 42.9k | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2650 | 42.9k | P1>::Release(p1_); } |
2651 | | |
2652 | | RunnableType runnable_; |
2653 | | P1 p1_; |
2654 | | P2 p2_; |
2655 | | P3 p3_; |
2656 | | P4 p4_; |
2657 | | P5 p5_; |
2658 | | P6 p6_; |
2659 | | }; |
2660 | | |
2661 | | template <typename Runnable, typename RunType, typename P1, typename P2, |
2662 | | typename P3, typename P4, typename P5, typename P6, typename P7> |
2663 | | struct BindState<Runnable, RunType, void(P1, P2, P3, P4, P5, P6, |
2664 | | P7)> : public BindStateBase { |
2665 | | typedef Runnable RunnableType; |
2666 | | |
2667 | | typedef base::false_type IsWeakCall; |
2668 | | |
2669 | | typedef Invoker<7, BindState, RunType> InvokerType; |
2670 | | typedef typename InvokerType::UnboundRunType UnboundRunType; |
2671 | | |
2672 | | // Convenience typedefs for bound argument types. |
2673 | | typedef UnwrapTraits<P1> Bound1UnwrapTraits; |
2674 | | typedef UnwrapTraits<P2> Bound2UnwrapTraits; |
2675 | | typedef UnwrapTraits<P3> Bound3UnwrapTraits; |
2676 | | typedef UnwrapTraits<P4> Bound4UnwrapTraits; |
2677 | | typedef UnwrapTraits<P5> Bound5UnwrapTraits; |
2678 | | typedef UnwrapTraits<P6> Bound6UnwrapTraits; |
2679 | | typedef UnwrapTraits<P7> Bound7UnwrapTraits; |
2680 | | |
2681 | | BindState(const Runnable& runnable, const P1& p1, const P2& p2, const P3& p3, |
2682 | | const P4& p4, const P5& p5, const P6& p6, const P7& p7) |
2683 | | : runnable_(runnable), |
2684 | | p1_(p1), |
2685 | | p2_(p2), |
2686 | | p3_(p3), |
2687 | | p4_(p4), |
2688 | | p5_(p5), |
2689 | | p6_(p6), |
2690 | | p7_(p7) { |
2691 | | MaybeRefcount<HasIsMethodTag<Runnable>::value, P1>::AddRef(p1_); |
2692 | | } |
2693 | | |
2694 | | virtual ~BindState() { MaybeRefcount<HasIsMethodTag<Runnable>::value, |
2695 | | P1>::Release(p1_); } |
2696 | | |
2697 | | RunnableType runnable_; |
2698 | | P1 p1_; |
2699 | | P2 p2_; |
2700 | | P3 p3_; |
2701 | | P4 p4_; |
2702 | | P5 p5_; |
2703 | | P6 p6_; |
2704 | | P7 p7_; |
2705 | | }; |
2706 | | |
2707 | | } // namespace internal |
2708 | | } // namespace yb |
2709 | | |
2710 | | #endif // YB_GUTIL_BIND_INTERNAL_H_ |