Commit f9e52814 authored by Dominik Charousset's avatar Dominik Charousset

Fix race in spawning function-based actors

spawn_fwd did not forward pointers to actors correctly as instances of actor,
resulting in a possible race, i.e., the reference count could drop to zero
before the function-based actor was initialized.
parent adae063a
......@@ -52,6 +52,9 @@ struct is_convertible_to_actor<scoped_actor> : std::true_type {
// nop
};
template <class T>
struct is_convertible_to_actor<T*> : is_convertible_to_actor<T> {};
/// Identifies an untyped actor. Can be used with derived types
/// of `event_based_actor`, `blocking_actor`, and `actor_proxy`.
class actor : detail::comparable<actor>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment