Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
poor damage control for tonight only
[simgrid.git] / src / s4u / s4u_Actor.cpp
1 /* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "simgrid/Exception.hpp"
7 #include "simgrid/actor.h"
8 #include "simgrid/s4u/Actor.hpp"
9 #include "simgrid/s4u/Exec.hpp"
10 #include "simgrid/s4u/Host.hpp"
11 #include "simgrid/s4u/VirtualMachine.hpp"
12 #include "src/kernel/activity/ExecImpl.hpp"
13 #include "src/simix/smx_private.hpp"
14 #include "src/surf/HostImpl.hpp"
15
16 #include <algorithm>
17 #include <sstream>
18
19 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_actor, "S4U actors");
20
21 namespace simgrid {
22 namespace s4u {
23
24 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_creation;
25 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_suspend;
26 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_resume;
27 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_sleep;
28 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_wake_up;
29 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_migration_start;
30 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_migration_end;
31 simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> s4u::Actor::on_destruction;
32
33 // ***** Actor creation *****
34 ActorPtr Actor::self()
35 {
36   smx_context_t self_context = simgrid::kernel::context::Context::self();
37   if (self_context == nullptr)
38     return simgrid::s4u::ActorPtr();
39
40   return self_context->get_actor()->iface();
41 }
42 ActorPtr Actor::init(std::string name, s4u::Host* host)
43 {
44   smx_actor_t self = SIMIX_process_self();
45   simgrid::kernel::actor::ActorImpl* actor =
46       simgrid::simix::simcall([self, name, host] { return self->init(std::move(name), host).get(); });
47   intrusive_ptr_release(actor);
48   return actor->ciface();
49 }
50
51 ActorPtr Actor::start(std::function<void()> code)
52 {
53   simgrid::simix::simcall([this, code] { pimpl_->start(code); });
54   return this;
55 }
56
57 ActorPtr Actor::create(std::string name, s4u::Host* host, std::function<void()> code)
58 {
59   simgrid::kernel::actor::ActorImpl* actor =
60       simcall_process_create(std::move(name), std::move(code), nullptr, host, nullptr);
61
62   return actor->iface();
63 }
64
65 ActorPtr Actor::create(std::string name, s4u::Host* host, const std::string& function, std::vector<std::string> args)
66 {
67   simgrid::simix::ActorCodeFactory& factory = SIMIX_get_actor_code_factory(function);
68   return create(std::move(name), host, factory(std::move(args)));
69 }
70
71 void intrusive_ptr_add_ref(Actor* actor)
72 {
73   intrusive_ptr_add_ref(actor->pimpl_);
74 }
75 void intrusive_ptr_release(Actor* actor)
76 {
77   intrusive_ptr_release(actor->pimpl_);
78 }
79
80 // ***** Actor methods *****
81
82 void Actor::join()
83 {
84   simcall_process_join(this->pimpl_, -1);
85 }
86
87 void Actor::join(double timeout)
88 {
89   simcall_process_join(this->pimpl_, timeout);
90 }
91
92 void Actor::set_auto_restart(bool autorestart)
93 {
94   simgrid::simix::simcall([this, autorestart]() {
95     xbt_assert(autorestart && not pimpl_->has_to_auto_restart()); // FIXME: handle all cases
96     pimpl_->set_auto_restart(autorestart);
97
98     simgrid::kernel::actor::ProcessArg* arg = new simgrid::kernel::actor::ProcessArg(pimpl_->get_host(), pimpl_);
99     XBT_DEBUG("Adding Process %s to the actors_at_boot_ list of Host %s", arg->name.c_str(), arg->host->get_cname());
100     pimpl_->get_host()->pimpl_->actors_at_boot_.emplace_back(arg);
101   });
102 }
103
104 void Actor::on_exit(int_f_pvoid_pvoid_t fun,
105                     void* data) /* deprecated: cleanup SIMIX_process_on_exit: change prototype of second parameter and
106                                    remove the last one */
107 {
108   simgrid::simix::simcall([this, fun, data] { SIMIX_process_on_exit(pimpl_, fun, data); });
109 }
110
111 void Actor::on_exit(std::function<void(bool /*failed*/)> const fun)
112 {
113   simgrid::simix::simcall(
114       [this, fun] { SIMIX_process_on_exit(pimpl_, [fun](int a, void* /*data*/) { fun(a != 0); }, nullptr); });
115 }
116
117 void Actor::migrate(Host* new_host)
118 {
119   s4u::Actor::on_migration_start(this);
120
121   simgrid::simix::simcall([this, new_host]() {
122     if (pimpl_->waiting_synchro != nullptr) {
123       // The actor is blocked on an activity. If it's an exec, migrate it too.
124       // FIXME: implement the migration of other kind of activities
125       simgrid::kernel::activity::ExecImplPtr exec =
126           boost::dynamic_pointer_cast<simgrid::kernel::activity::ExecImpl>(pimpl_->waiting_synchro);
127       xbt_assert(exec.get() != nullptr, "We can only migrate blocked actors when they are blocked on executions.");
128       exec->migrate(new_host);
129     }
130     this->pimpl_->set_host(new_host);
131   });
132
133   s4u::Actor::on_migration_end(this);
134 }
135
136 s4u::Host* Actor::get_host()
137 {
138   return this->pimpl_->get_host();
139 }
140
141 void Actor::daemonize()
142 {
143   simgrid::simix::simcall([this]() { pimpl_->daemonize(); });
144 }
145
146 bool Actor::is_daemon() const
147 {
148   return this->pimpl_->is_daemon();
149 }
150
151 const simgrid::xbt::string& Actor::get_name() const
152 {
153   return this->pimpl_->get_name();
154 }
155
156 const char* Actor::get_cname() const
157 {
158   return this->pimpl_->get_cname();
159 }
160
161 aid_t Actor::get_pid() const
162 {
163   return this->pimpl_->get_pid();
164 }
165
166 aid_t Actor::get_ppid() const
167 {
168   return this->pimpl_->get_ppid();
169 }
170
171 void Actor::suspend()
172 {
173   s4u::Actor::on_suspend(this);
174   simcall_process_suspend(pimpl_);
175 }
176
177 void Actor::resume()
178 {
179   simgrid::simix::simcall([this] { pimpl_->resume(); });
180   s4u::Actor::on_resume(this);
181 }
182
183 bool Actor::is_suspended()
184 {
185   return simgrid::simix::simcall([this] { return pimpl_->is_suspended(); });
186 }
187
188 void Actor::set_kill_time(double kill_time)
189 {
190   simgrid::simix::simcall([this, kill_time] { pimpl_->set_kill_time(kill_time); });
191 }
192
193 /** @brief Get the kill time of an actor(or 0 if unset). */
194 double Actor::get_kill_time()
195 {
196   return pimpl_->get_kill_time();
197 }
198
199 void Actor::kill(aid_t pid) // deprecated
200 {
201   smx_actor_t killer  = SIMIX_process_self();
202   smx_actor_t victim  = SIMIX_process_from_PID(pid);
203   if (victim != nullptr) {
204     simgrid::simix::simcall([killer, victim] { killer->kill(victim); });
205   } else {
206     std::ostringstream oss;
207     oss << "kill: (" << pid << ") - No such actor" << std::endl;
208     throw std::runtime_error(oss.str());
209   }
210 }
211
212 void Actor::kill()
213 {
214   smx_actor_t process = SIMIX_process_self();
215   simgrid::simix::simcall([this, process] {
216     if (pimpl_ == simix_global->maestro_process)
217       pimpl_->exit();
218     else
219       process->kill(pimpl_);
220   });
221 }
222
223 smx_actor_t Actor::get_impl()
224 {
225   return pimpl_;
226 }
227
228 // ***** Static functions *****
229
230 ActorPtr Actor::by_pid(aid_t pid)
231 {
232   smx_actor_t process = SIMIX_process_from_PID(pid);
233   if (process != nullptr)
234     return process->iface();
235   else
236     return ActorPtr();
237 }
238
239 void Actor::kill_all()
240 {
241   smx_actor_t self = SIMIX_process_self();
242   simgrid::simix::simcall([self] { self->kill_all(); });
243 }
244
245 std::unordered_map<std::string, std::string>* Actor::get_properties()
246 {
247   return simgrid::simix::simcall([this] { return this->pimpl_->get_properties(); });
248 }
249
250 /** Retrieve the property value (or nullptr if not set) */
251 const char* Actor::get_property(const std::string& key)
252 {
253   return simgrid::simix::simcall([this, key] { return pimpl_->get_property(key); });
254 }
255
256 void Actor::set_property(const std::string& key, std::string value)
257 {
258   simgrid::simix::simcall([this, key, value] { pimpl_->set_property(key, std::move(value)); });
259 }
260
261 Actor* Actor::restart()
262 {
263   return simgrid::simix::simcall([this]() { return pimpl_->restart(); });
264 }
265
266 // ***** this_actor *****
267
268 namespace this_actor {
269
270 /** Returns true if run from the kernel mode, and false if run from a real actor
271  *
272  * Everything that is run out of any actor (simulation setup before the engine is run,
273  * computing the model evolutions as a result to the actors' action, etc) is run in
274  * kernel mode, just as in any operating systems.
275  *
276  * In SimGrid, the actor in charge of doing the stuff in kernel mode is called Maestro,
277  * because it is the one scheduling when the others should move or wait.
278  */
279 bool is_maestro()
280 {
281   smx_actor_t process = SIMIX_process_self();
282   return process == nullptr || process == simix_global->maestro_process;
283 }
284
285 void sleep_for(double duration)
286 {
287   if (duration > 0) {
288     smx_actor_t actor = SIMIX_process_self();
289     simgrid::s4u::Actor::on_sleep(actor->iface());
290
291     simcall_process_sleep(duration);
292
293     simgrid::s4u::Actor::on_wake_up(actor->iface());
294   }
295 }
296
297 void yield()
298 {
299   simgrid::simix::simcall([] { /* do nothing*/ });
300 }
301
302 XBT_PUBLIC void sleep_until(double timeout)
303 {
304   double now = SIMIX_get_clock();
305   if (timeout > now)
306     sleep_for(timeout - now);
307 }
308
309 void execute(double flops)
310 {
311   execute(flops, 1.0 /* priority */);
312 }
313
314 void execute(double flops, double priority)
315 {
316   exec_init(flops)->set_priority(priority)->start()->wait();
317 }
318
319 void parallel_execute(const std::vector<s4u::Host*>& hosts, const std::vector<double>& flops_amounts,
320                       const std::vector<double>& bytes_amounts)
321 {
322   parallel_execute(hosts, flops_amounts, bytes_amounts, -1);
323 }
324
325 void parallel_execute(const std::vector<s4u::Host*>& hosts, const std::vector<double>& flops_amounts,
326                       const std::vector<double>& bytes_amounts, double timeout)
327 {
328   xbt_assert(hosts.size() > 0, "Your parallel executions must span over at least one host.");
329   xbt_assert(hosts.size() == flops_amounts.size() || flops_amounts.empty(),
330              "Host count (%zu) does not match flops_amount count (%zu).", hosts.size(), flops_amounts.size());
331   xbt_assert(hosts.size() * hosts.size() == bytes_amounts.size() || bytes_amounts.empty(),
332              "bytes_amounts must be a matrix of size host_count * host_count (%zu*%zu), but it's of size %zu.",
333              hosts.size(), hosts.size(), flops_amounts.size());
334   /* Check that we are not mixing VMs and PMs in the parallel task */
335   bool is_a_vm = (nullptr != dynamic_cast<simgrid::s4u::VirtualMachine*>(hosts.front()));
336   xbt_assert(std::all_of(hosts.begin(), hosts.end(),
337                          [is_a_vm](s4u::Host* elm) {
338                            bool tmp_is_a_vm = (nullptr != dynamic_cast<simgrid::s4u::VirtualMachine*>(elm));
339                            return is_a_vm == tmp_is_a_vm;
340                          }),
341              "parallel_execute: mixing VMs and PMs is not supported (yet).");
342   /* checking for infinite values */
343   xbt_assert(std::all_of(flops_amounts.begin(), flops_amounts.end(), [](double elm) { return std::isfinite(elm); }),
344              "flops_amounts comprises infinite values!");
345   xbt_assert(std::all_of(bytes_amounts.begin(), bytes_amounts.end(), [](double elm) { return std::isfinite(elm); }),
346              "flops_amounts comprises infinite values!");
347
348   exec_init(hosts, flops_amounts, bytes_amounts)->set_timeout(timeout)->wait();
349 }
350
351 // deprecated
352 void parallel_execute(int host_nb, s4u::Host* const* host_list, const double* flops_amount, const double* bytes_amount,
353                       double timeout)
354 {
355   smx_activity_t s =
356       simcall_execution_parallel_start("", host_nb, host_list, flops_amount, bytes_amount, /* rate */ -1, timeout);
357   simcall_execution_wait(s);
358   delete[] flops_amount;
359   delete[] bytes_amount;
360 }
361
362 // deprecated
363 void parallel_execute(int host_nb, s4u::Host* const* host_list, const double* flops_amount, const double* bytes_amount)
364 {
365   smx_activity_t s = simcall_execution_parallel_start("", host_nb, host_list, flops_amount, bytes_amount,
366                                                       /* rate */ -1, /*timeout*/ -1);
367   simcall_execution_wait(s);
368   delete[] flops_amount;
369   delete[] bytes_amount;
370 }
371
372 ExecPtr exec_init(double flops_amount)
373 {
374   return ExecPtr(new ExecSeq(get_host(), flops_amount));
375 }
376
377 ExecPtr exec_init(const std::vector<s4u::Host*>& hosts, const std::vector<double>& flops_amounts,
378                   const std::vector<double>& bytes_amounts)
379 {
380   return ExecPtr(new ExecPar(hosts, flops_amounts, bytes_amounts));
381 }
382
383 ExecPtr exec_async(double flops)
384 {
385   ExecPtr res = exec_init(flops);
386   res->start();
387   return res;
388 }
389
390 aid_t get_pid()
391 {
392   return SIMIX_process_self()->get_pid();
393 }
394
395 aid_t get_ppid()
396 {
397   return SIMIX_process_self()->get_ppid();
398 }
399
400 std::string get_name()
401 {
402   return SIMIX_process_self()->get_name();
403 }
404
405 const char* get_cname()
406 {
407   return SIMIX_process_self()->get_cname();
408 }
409
410 Host* get_host()
411 {
412   return SIMIX_process_self()->get_host();
413 }
414
415 void suspend()
416 {
417   smx_actor_t actor = SIMIX_process_self();
418   simgrid::s4u::Actor::on_suspend(actor->iface());
419
420   simcall_process_suspend(actor);
421 }
422
423 void resume()
424 {
425   smx_actor_t process = SIMIX_process_self();
426   simgrid::simix::simcall([process] { process->resume(); });
427   simgrid::s4u::Actor::on_resume(process->iface());
428 }
429
430 void exit()
431 {
432   smx_actor_t actor = SIMIX_process_self();
433   simgrid::simix::simcall([actor] { actor->exit(); });
434 }
435
436 void on_exit(std::function<void(bool)> const fun)
437 {
438   SIMIX_process_self()->iface()->on_exit(fun);
439 }
440
441 void on_exit(std::function<void(int, void*)> const fun, void* data) /* deprecated */
442 {
443   SIMIX_process_self()->iface()->on_exit([fun, data](bool exit) { fun(exit, data); });
444 }
445
446 /** @brief Moves the current actor to another host
447  *
448  * @see simgrid::s4u::Actor::migrate() for more information
449  */
450 void migrate(Host* new_host)
451 {
452   SIMIX_process_self()->iface()->migrate(new_host);
453 }
454
455 std::string getName() /* deprecated */
456 {
457   return get_name();
458 }
459 const char* getCname() /* deprecated */
460 {
461   return get_cname();
462 }
463 bool isMaestro() /* deprecated */
464 {
465   return is_maestro();
466 }
467 aid_t getPid() /* deprecated */
468 {
469   return get_pid();
470 }
471 aid_t getPpid() /* deprecated */
472 {
473   return get_ppid();
474 }
475 Host* getHost() /* deprecated */
476 {
477   return get_host();
478 }
479 void on_exit(int_f_pvoid_pvoid_t fun, void* data) /* deprecated */
480 {
481   SIMIX_process_self()->iface()->on_exit([fun, data](int a) { fun((void*)(intptr_t)a, data); });
482 }
483 void onExit(int_f_pvoid_pvoid_t fun, void* data) /* deprecated */
484 {
485   on_exit([fun, data](int a) { fun((void*)(intptr_t)a, data); });
486 }
487 void kill() /* deprecated */
488 {
489   exit();
490 }
491
492 } // namespace this_actor
493 } // namespace s4u
494 } // namespace simgrid
495
496 /* **************************** Public C interface *************************** */
497
498 /** @ingroup m_actor_management
499  * @brief Returns the process ID of @a actor.
500  *
501  * This function checks whether @a actor is a valid pointer and return its PID (or 0 in case of problem).
502  */
503 aid_t sg_actor_get_PID(sg_actor_t actor)
504 {
505   /* Do not raise an exception here: this function is called by the logs
506    * and the exceptions, so it would be called back again and again */
507   if (actor == nullptr || actor->get_impl() == nullptr)
508     return 0;
509   return actor->get_pid();
510 }
511
512 /** @ingroup m_actor_management
513  * @brief Returns the process ID of the parent of @a actor.
514  *
515  * This function checks whether @a actor is a valid pointer and return its parent's PID.
516  * Returns -1 if the actor has not been created by any other actor.
517  */
518 aid_t sg_actor_get_PPID(sg_actor_t actor)
519 {
520   return actor->get_ppid();
521 }
522
523 /** @ingroup m_actor_management
524  *
525  * @brief Return a #sg_actor_t given its PID.
526  *
527  * This function search in the list of all the created sg_actor_t for a sg_actor_t  whose PID is equal to @a PID.
528  * If none is found, @c nullptr is returned.
529    Note that the PID are unique in the whole simulation, not only on a given host.
530  */
531 sg_actor_t sg_actor_by_PID(aid_t pid)
532 {
533   return simgrid::s4u::Actor::by_pid(pid).get();
534 }
535
536 /** @ingroup m_actor_management
537  * @brief Return the name of an actor.
538  */
539 const char* sg_actor_get_name(sg_actor_t actor)
540 {
541   return actor->get_cname();
542 }
543
544 sg_host_t sg_actor_get_host(sg_actor_t actor)
545 {
546   return actor->get_host();
547 }
548
549 /** @ingroup m_actor_management
550  * @brief Returns the value of a given actor property
551  *
552  * @param actor an actor
553  * @param name a property name
554  * @return value of a property (or nullptr if the property is not set)
555  */
556 const char* sg_actor_get_property_value(sg_actor_t actor, const char* name)
557 {
558   return actor->get_property(name);
559 }
560
561 /** @ingroup m_actor_management
562  * @brief Return the list of properties
563  *
564  * This function returns all the parameters associated with an actor
565  */
566 xbt_dict_t sg_actor_get_properties(sg_actor_t actor)
567 {
568   xbt_assert(actor != nullptr, "Invalid parameter: First argument must not be nullptr");
569   xbt_dict_t as_dict                        = xbt_dict_new_homogeneous(xbt_free_f);
570   std::unordered_map<std::string, std::string>* props = actor->get_properties();
571   if (props == nullptr)
572     return nullptr;
573   for (auto const& kv : *props) {
574     xbt_dict_set(as_dict, kv.first.c_str(), xbt_strdup(kv.second.c_str()), nullptr);
575   }
576   return as_dict;
577 }
578
579 /** @ingroup m_actor_management
580  * @brief Suspend the actor.
581  *
582  * This function suspends the actor by suspending the task on which it was waiting for the completion.
583  */
584 void sg_actor_suspend(sg_actor_t actor)
585 {
586   xbt_assert(actor != nullptr, "Invalid parameter: First argument must not be nullptr");
587   actor->suspend();
588 }
589
590 /** @ingroup m_actor_management
591  * @brief Resume a suspended actor.
592  *
593  * This function resumes a suspended actor by resuming the task on which it was waiting for the completion.
594  */
595 void sg_actor_resume(sg_actor_t actor)
596 {
597   xbt_assert(actor != nullptr, "Invalid parameter: First argument must not be nullptr");
598   actor->resume();
599 }
600
601 /** @ingroup m_actor_management
602  * @brief Returns true if the actor is suspended .
603  *
604  * This checks whether an actor is suspended or not by inspecting the task on which it was waiting for the completion.
605  */
606 int sg_actor_is_suspended(sg_actor_t actor)
607 {
608   return actor->is_suspended();
609 }
610
611 /**
612  * @ingroup m_actor_management
613  * @brief Restarts an actor from the beginning.
614  */
615 sg_actor_t sg_actor_restart(sg_actor_t actor)
616 {
617   return actor->restart();
618 }
619
620 /**
621  * @ingroup m_actor_management
622  * @brief Sets the "auto-restart" flag of the actor.
623  * If the flag is set to 1, the actor will be automatically restarted when its host comes back up.
624  */
625 void sg_actor_set_auto_restart(sg_actor_t actor, int auto_restart)
626 {
627   actor->set_auto_restart(auto_restart);
628 }
629
630 /** @ingroup m_actor_management
631  * @brief This actor will be terminated automatically when the last non-daemon actor finishes
632  */
633 void sg_actor_daemonize(sg_actor_t actor)
634 {
635   actor->daemonize();
636 }
637
638 /** @ingroup m_actor_management
639  * @brief Migrates an actor to another location.
640  *
641  * This function changes the value of the #sg_host_t on  which @a actor is running.
642  */
643 void sg_actor_migrate(sg_actor_t process, sg_host_t host)
644 {
645   process->migrate(host);
646 }
647
648 /** @ingroup m_actor_management
649  * @brief Wait for the completion of a #sg_actor_t.
650  *
651  * @param actor the actor to wait for
652  * @param timeout wait until the actor is over, or the timeout expires
653  */
654 void sg_actor_join(sg_actor_t actor, double timeout)
655 {
656   actor->join(timeout);
657 }
658
659 void sg_actor_kill(sg_actor_t actor)
660 {
661   actor->kill();
662 }
663
664 void sg_actor_kill_all()
665 {
666   simgrid::s4u::Actor::kill_all();
667 }
668
669 /** @ingroup m_actor_management
670  * @brief Set the kill time of an actor.
671  *
672  * @param actor an actor
673  * @param kill_time the time when the actor is killed.
674  */
675 void sg_actor_set_kill_time(sg_actor_t actor, double kill_time)
676 {
677   actor->set_kill_time(kill_time);
678 }
679
680 /** Yield the current actor; let the other actors execute first */
681 void sg_actor_yield()
682 {
683   simgrid::s4u::this_actor::yield();
684 }
685
686 void sg_actor_sleep_for(double duration)
687 {
688   simgrid::s4u::this_actor::sleep_for(duration);
689 }
690
691 sg_actor_t sg_actor_attach(const char* name, void* data, sg_host_t host, xbt_dict_t properties)
692 {
693   xbt_assert(host != nullptr, "Invalid parameters: host and code params must not be nullptr");
694   std::unordered_map<std::string, std::string> props;
695   xbt_dict_cursor_t cursor = nullptr;
696   char* key;
697   char* value;
698   xbt_dict_foreach (properties, cursor, key, value)
699     props[key] = value;
700   xbt_dict_free(&properties);
701
702   /* Let's create the process: SIMIX may decide to start it right now, even before returning the flow control to us */
703   smx_actor_t actor = nullptr;
704   try {
705     actor = simgrid::kernel::actor::ActorImpl::attach(name, data, host, &props).get();
706   } catch (simgrid::HostFailureException const&) {
707     xbt_die("Could not attach");
708   }
709
710   simgrid::s4u::this_actor::yield();
711   return actor->ciface();
712 }
713
714 void sg_actor_detach()
715 {
716   simgrid::kernel::actor::ActorImpl::detach();
717 }