@@ -84,9 +84,9 @@ class Scheduler {
84
84
int32 sched_count () const ;
85
85
86
86
template <class ActorT , class ... Args>
87
- TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor (Slice name, Args &&... args);
87
+ TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor (Slice name, Args &&...args);
88
88
template <class ActorT , class ... Args>
89
- TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor_on_scheduler (Slice name, int32 sched_id, Args &&... args);
89
+ TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor_on_scheduler (Slice name, int32 sched_id, Args &&...args);
90
90
template <class ActorT >
91
91
TD_WARN_UNUSED_RESULT ActorOwn<ActorT> register_actor (Slice name, ActorT *actor_ptr, int32 sched_id = -1 );
92
92
template <class ActorT >
@@ -244,9 +244,9 @@ class Scheduler {
244
244
245
245
/* ** Interface to current scheduler ***/
246
246
template <class ActorT , class ... Args>
247
- TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor (Slice name, Args &&... args);
247
+ TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor (Slice name, Args &&...args);
248
248
template <class ActorT , class ... Args>
249
- TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor_on_scheduler (Slice name, int32 sched_id, Args &&... args);
249
+ TD_WARN_UNUSED_RESULT ActorOwn<ActorT> create_actor_on_scheduler (Slice name, int32 sched_id, Args &&...args);
250
250
template <class ActorT >
251
251
TD_WARN_UNUSED_RESULT ActorOwn<ActorT> register_actor (Slice name, ActorT *actor_ptr, int32 sched_id = -1 );
252
252
template <class ActorT >
@@ -256,7 +256,7 @@ template <class ActorT>
256
256
TD_WARN_UNUSED_RESULT ActorOwn<ActorT> register_existing_actor (unique_ptr<ActorT> actor_ptr);
257
257
258
258
template <class ActorIdT , class FunctionT , class ... ArgsT>
259
- void send_closure (ActorIdT &&actor_id, FunctionT function, ArgsT &&... args) {
259
+ void send_closure (ActorIdT &&actor_id, FunctionT function, ArgsT &&...args) {
260
260
using ActorT = typename std::decay_t <ActorIdT>::ActorT;
261
261
using FunctionClassT = member_function_class_t <FunctionT>;
262
262
static_assert (std::is_base_of<FunctionClassT, ActorT>::value, " unsafe send_closure" );
@@ -266,7 +266,7 @@ void send_closure(ActorIdT &&actor_id, FunctionT function, ArgsT &&... args) {
266
266
}
267
267
268
268
template <class ActorIdT , class FunctionT , class ... ArgsT>
269
- void send_closure_later (ActorIdT &&actor_id, FunctionT function, ArgsT &&... args) {
269
+ void send_closure_later (ActorIdT &&actor_id, FunctionT function, ArgsT &&...args) {
270
270
using ActorT = typename std::decay_t <ActorIdT>::ActorT;
271
271
using FunctionClassT = member_function_class_t <FunctionT>;
272
272
static_assert (std::is_base_of<FunctionClassT, ActorT>::value, " unsafe send_closure" );
@@ -276,17 +276,17 @@ void send_closure_later(ActorIdT &&actor_id, FunctionT function, ArgsT &&... arg
276
276
}
277
277
278
278
template <class ... ArgsT>
279
- void send_lambda (ActorRef actor_ref, ArgsT &&... args) {
279
+ void send_lambda (ActorRef actor_ref, ArgsT &&...args) {
280
280
Scheduler::instance ()->send_lambda <ActorSendType::Immediate>(actor_ref, std::forward<ArgsT>(args)...);
281
281
}
282
282
283
283
template <class ... ArgsT>
284
- void send_event (ActorRef actor_ref, ArgsT &&... args) {
284
+ void send_event (ActorRef actor_ref, ArgsT &&...args) {
285
285
Scheduler::instance ()->send <ActorSendType::Immediate>(actor_ref, std::forward<ArgsT>(args)...);
286
286
}
287
287
288
288
template <class ... ArgsT>
289
- void send_event_later (ActorRef actor_ref, ArgsT &&... args) {
289
+ void send_event_later (ActorRef actor_ref, ArgsT &&...args) {
290
290
Scheduler::instance ()->send <ActorSendType::Later>(actor_ref, std::forward<ArgsT>(args)...);
291
291
}
292
292
0 commit comments