Home
last modified time | relevance | path

Searched full:actor (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DActorLazyTest.kt12 val actor = actor<String>(start = CoroutineStart.LAZY) { in <lambda>() constant
15 actor as Job // type assertion in <lambda>()
16 assertFalse(actor.isActive) in <lambda>()
17 assertFalse(actor.isCompleted) in <lambda>()
18 assertFalse(actor.isClosedForSend) in <lambda>()
20 yield() // to actor code --> nothing happens (not started!) in <lambda>()
21 assertFalse(actor.isActive) in <lambda>()
22 assertFalse(actor.isCompleted) in <lambda>()
23 assertFalse(actor.isClosedForSend) in <lambda>()
25 // start actor explicitly in <lambda>()
[all …]
DActorTest.kt23 val actor = actor<String>(capacity = capacity) { in <lambda>() constant
26 actor as Job // type assertion in <lambda>()
27 assertTrue(actor.isActive) in <lambda>()
28 assertFalse(actor.isCompleted) in <lambda>()
29 assertFalse(actor.isClosedForSend) in <lambda>()
31 yield() // to actor code in <lambda>()
32 assertFalse(actor.isActive) in <lambda>()
33 assertTrue(actor.isCompleted) in <lambda>()
34 assertTrue(actor.isClosedForSend) in <lambda>()
41 val actor = actor<String>(capacity = capacity) { in <lambda>() constant
[all …]
/external/cronet/tot/net/third_party/quiche/src/quiche/quic/test_tools/simulator/
Dactor.h18 // Actor is the base class for all participants of the simulation which can
19 // schedule events to be triggered at the specified time. Every actor has a
22 // The Actor object is scheduled as follows:
23 // 1. Every Actor object appears at most once in the event queue, for one
25 // 2. Actor is scheduled by calling Schedule() method.
28 // 4. Before Act() is called, the Actor is removed from the event queue. Act()
30 class Actor {
32 Actor(Simulator* simulator, std::string name);
33 virtual ~Actor();
35 // Trigger all the events the actor can potentially handle at this point.
[all …]
Dsimulator.h14 #include "quiche/quic/test_tools/simulator/actor.h"
31 // Schedule the specified actor. This method will ensure that |actor| is
33 // before the Actor is called, Act() is called exactly once, at the earliest
34 // time requested, and the Actor has to reschedule itself manually for the
36 void Schedule(Actor* actor, QuicTime new_time);
38 // Remove the specified actor from the schedule.
39 void Unschedule(Actor* actor);
69 friend class Actor;
98 // Register an actor with the simulator. Invoked by Actor constructor.
99 void AddActor(Actor* actor);
[all …]
Dsimulator.cc27 // Ensure that Actor under run_for_alarm_ is removed before Simulator data in ~Simulator()
43 void Simulator::AddActor(Actor* actor) { in AddActor() argument
45 scheduled_times_.insert(std::make_pair(actor, QuicTime::Infinite())); in AddActor()
46 auto emplace_names_result = actor_names_.insert(actor->name()); in AddActor()
53 void Simulator::RemoveActor(Actor* actor) { in RemoveActor() argument
54 auto scheduled_time_it = scheduled_times_.find(actor); in RemoveActor()
55 auto actor_names_it = actor_names_.find(actor->name()); in RemoveActor()
61 Unschedule(actor); in RemoveActor()
68 void Simulator::Schedule(Actor* actor, QuicTime new_time) { in Schedule() argument
69 auto scheduled_time_it = scheduled_times_.find(actor); in Schedule()
[all …]
/external/cronet/stable/net/third_party/quiche/src/quiche/quic/test_tools/simulator/
Dactor.h18 // Actor is the base class for all participants of the simulation which can
19 // schedule events to be triggered at the specified time. Every actor has a
22 // The Actor object is scheduled as follows:
23 // 1. Every Actor object appears at most once in the event queue, for one
25 // 2. Actor is scheduled by calling Schedule() method.
28 // 4. Before Act() is called, the Actor is removed from the event queue. Act()
30 class Actor {
32 Actor(Simulator* simulator, std::string name);
33 virtual ~Actor();
35 // Trigger all the events the actor can potentially handle at this point.
[all …]
Dsimulator.h14 #include "quiche/quic/test_tools/simulator/actor.h"
31 // Schedule the specified actor. This method will ensure that |actor| is
33 // before the Actor is called, Act() is called exactly once, at the earliest
34 // time requested, and the Actor has to reschedule itself manually for the
36 void Schedule(Actor* actor, QuicTime new_time);
38 // Remove the specified actor from the schedule.
39 void Unschedule(Actor* actor);
69 friend class Actor;
98 // Register an actor with the simulator. Invoked by Actor constructor.
99 void AddActor(Actor* actor);
[all …]
Dsimulator.cc27 // Ensure that Actor under run_for_alarm_ is removed before Simulator data in ~Simulator()
43 void Simulator::AddActor(Actor* actor) { in AddActor() argument
45 scheduled_times_.insert(std::make_pair(actor, QuicTime::Infinite())); in AddActor()
46 auto emplace_names_result = actor_names_.insert(actor->name()); in AddActor()
53 void Simulator::RemoveActor(Actor* actor) { in RemoveActor() argument
54 auto scheduled_time_it = scheduled_times_.find(actor); in RemoveActor()
55 auto actor_names_it = actor_names_.find(actor->name()); in RemoveActor()
61 Unschedule(actor); in RemoveActor()
68 void Simulator::Schedule(Actor* actor, QuicTime new_time) { in Schedule() argument
69 auto scheduled_time_it = scheduled_times_.find(actor); in Schedule()
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/doc/inside/
Dactor.qbk10 [section:actor Actors in Detail]
12 [heading Actor]
14 The main concept is the `Actor`. An `Actor` is a model of the __PFO__ concept
17 An `Actor` contains a valid Phoenix Expression, a call to one of the function
21 actor can take. By default, `BOOST_PHOENIX_LIMIT` is set to 10.]
23 The `actor` template class models the `Actor` concept:
26 struct actor
31 typename result_of::actor<Expr>::type
35 typename result_of::actor<Expr, T0 &>::type
39 typename result_of::actor<Expr, T0 const &>::type
[all …]
/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/karma/
Dphoenix_attributes.hpp28 struct actor;
40 struct is_container<phoenix::actor<Eval> const>
41 : is_container<typename boost::result_of<phoenix::actor<Eval>()>::type>
45 struct container_iterator<phoenix::actor<Eval> const>
47 typedef phoenix::actor<Eval> const& type;
51 struct begin_container<phoenix::actor<Eval> const>
53 typedef phoenix::actor<Eval> const& type;
54 static type call(phoenix::actor<Eval> const& f) in call()
61 struct end_container<phoenix::actor<Eval> const>
63 typedef phoenix::actor<Eval> const& type;
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/include/boost/phoenix/core/detail/cpp03/preprocessed/
Dactor_operator_10.hpp19actor<proto_base_expr, A0 &> {}; template <typename A0> typename result_of::actor<proto_base_expr,… in operator ()()
31actor<proto_base_expr, A0 & , A1 &> {}; template <typename A0 , typename A1> typename result_of::a… in operator ()()
45 : result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>
48 typename result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>::type
53 const actor<Expr> *, A0 & , A1 & , A2 & in operator ()()
61 typename result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>::type
66 const actor<Expr> *, A0 & , A1 & , A2 & in operator ()()
74 typename result_of::actor<proto_base_expr, A0 const& , A1 const& , A2 const&>::type
79 const actor<Expr> *, A0 const& , A1 const& , A2 const& in operator ()()
87 typename result_of::actor<proto_base_expr, A0 const& , A1 const& , A2 const&>::type
[all …]
Dactor_result_of_20.hpp11 struct actor;
19 vector1<const ::boost::phoenix::actor<Expr> *> &
34 struct actor<Expr, A0> struct
41 vector2<const ::boost::phoenix::actor<Expr> *, A0> &
56 struct actor<Expr, A0 , A1> argument
63 vector3<const ::boost::phoenix::actor<Expr> *, A0 , A1> &
78 struct actor<Expr, A0 , A1 , A2> argument
85 vector4<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2> &
100 struct actor<Expr, A0 , A1 , A2 , A3> argument
107 vector5<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2 , A3> &
[all …]
Dactor_result_of_30.hpp11 struct actor;
19 vector1<const ::boost::phoenix::actor<Expr> *> &
34 struct actor<Expr, A0> struct
41 vector2<const ::boost::phoenix::actor<Expr> *, A0> &
56 struct actor<Expr, A0 , A1> argument
63 vector3<const ::boost::phoenix::actor<Expr> *, A0 , A1> &
78 struct actor<Expr, A0 , A1 , A2> struct
85 vector4<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2> &
100 struct actor<Expr, A0 , A1 , A2 , A3> argument
107 vector5<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2 , A3> &
[all …]
Dactor_result_of_10.hpp11 struct actor;
19 vector1<const ::boost::phoenix::actor<Expr> *> &
34 struct actor<Expr, A0> struct
41 vector2<const ::boost::phoenix::actor<Expr> *, A0> &
56 struct actor<Expr, A0 , A1> struct
63 vector3<const ::boost::phoenix::actor<Expr> *, A0 , A1> &
78 struct actor<Expr, A0 , A1 , A2> struct
85 vector4<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2> &
100 struct actor<Expr, A0 , A1 , A2 , A3> argument
107 vector5<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2 , A3> &
[all …]
Dexpression_10.hpp10 template <typename> class Actor
20 struct expr : expr_ext<actor, Tag, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9> {};
28 template <template <typename> class Actor, typename Tag, typename A0>
29 struct expr_ext<Actor, Tag, A0>
30 : proto::transform<expr_ext<Actor, Tag, A0>, int>
39 typedef Actor<base_type> type;
46 actor<base_type> const e = in make()
69 template <template <typename> class Actor, typename Tag, typename A0 , typename A1>
70 struct expr_ext<Actor, Tag, A0 , A1>
71 : proto::transform<expr_ext<Actor, Tag, A0 , A1>, int>
[all …]
Dactor_result_of_40.hpp11 struct actor;
19 vector1<const ::boost::phoenix::actor<Expr> *> &
34 struct actor<Expr, A0> struct
41 vector2<const ::boost::phoenix::actor<Expr> *, A0> &
56 struct actor<Expr, A0 , A1> argument
63 vector3<const ::boost::phoenix::actor<Expr> *, A0 , A1> &
78 struct actor<Expr, A0 , A1 , A2> struct
85 vector4<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2> &
100 struct actor<Expr, A0 , A1 , A2 , A3> argument
107 vector5<const ::boost::phoenix::actor<Expr> *, A0 , A1 , A2 , A3> &
[all …]
Dactor_operator_20.hpp19actor<proto_base_expr, A0 &> {}; template <typename A0> typename result_of::actor<proto_base_expr,… in operator ()()
31actor<proto_base_expr, A0 & , A1 &> {}; template <typename A0 , typename A1> typename result_of::a… in operator ()()
45 : result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>
48 typename result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>::type
53 const actor<Expr> *, A0 & , A1 & , A2 & in operator ()()
61 typename result_of::actor<proto_base_expr, A0 & , A1 & , A2 &>::type
66 const actor<Expr> *, A0 & , A1 & , A2 & in operator ()()
74 typename result_of::actor<proto_base_expr, A0 const& , A1 const& , A2 const&>::type
79 const actor<Expr> *, A0 const& , A1 const& , A2 const& in operator ()()
87 typename result_of::actor<proto_base_expr, A0 const& , A1 const& , A2 const&>::type
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/include/boost/phoenix/core/
Dactor.hpp45 struct actor;
83 // Bring in the result_of::actor<>
94 template apply<const ::boost::phoenix::actor<Expr> *, A...>::type&
103 struct actor : actor_impl<Expr, A...> {};
110 struct actor<Expr> struct
113 // avoid calling result_of::actor when this is false
125 // actor
127 // The actor class. The main thing! In phoenix, everything is an actor
129 // function evaluation involves creating a hierarchy of actor objects.
133 struct actor struct
[all …]
/external/google-cloud-java/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/
DActor.java17 // source: google/cloud/support/v2/actor.proto
29 * Protobuf type {@code google.cloud.support.v2.Actor}
31 public final class Actor extends com.google.protobuf.GeneratedMessageV3 class
33 // @@protoc_insertion_point(message_implements:google.cloud.support.v2.Actor)
36 // Use Actor.newBuilder() to construct.
37 private Actor(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Actor() method in Actor
41 private Actor() { in Actor() method in Actor
49 return new Actor(); in newInstance()
68 com.google.cloud.support.v2.Actor.class, in internalGetFieldAccessorTable()
69 com.google.cloud.support.v2.Actor.Builder.class); in internalGetFieldAccessorTable()
[all …]
/external/sdv/vsomeip/third_party/boost/asio/example/cpp11/executors/
Dactor.cpp20 // A tiny actor framework
23 class actor;
26 typedef actor* actor_address;
48 template <class Actor, class Message>
53 mf_message_handler(void (Actor::* mf)(Message, actor_address), Actor* a) in mf_message_handler()
71 bool is_function(void (Actor::* mf)(Message, actor_address)) const in is_function()
77 void (Actor::* function_)(Message, actor_address);
78 Actor* actor_;
82 class actor class
85 virtual ~actor() in ~actor()
[all …]
/external/sdv/vsomeip/third_party/boost/asio/example/cpp14/executors/
Dactor.cpp20 // A tiny actor framework
23 class actor;
26 typedef actor* actor_address;
48 template <class Actor, class Message>
53 mf_message_handler(void (Actor::* mf)(Message, actor_address), Actor* a) in mf_message_handler()
71 bool is_function(void (Actor::* mf)(Message, actor_address)) const in is_function()
77 void (Actor::* function_)(Message, actor_address);
78 Actor* actor_;
82 class actor class
85 virtual ~actor() in ~actor()
[all …]
/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/classic/
Dactor.hpp21 // example of actor is the append_actor described in the Spirit
29 // Actor instances are not created directly since they usually involve a
39 // Therefore, this kind of actor have been broken down into
42 // - a policy holder actor that stores the references and feeds the act
48 // <member>_ >> *<member> >> !value >> actor
66 // - ref is a reference to an object stored in a policy holder actor,
68 // policy holder actor,
95 #include <boost/spirit/home/classic/actor/ref_actor.hpp>
96 #include <boost/spirit/home/classic/actor/ref_value_actor.hpp>
97 #include <boost/spirit/home/classic/actor/ref_const_ref_actor.hpp>
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/doc/modules/
Doperator.qbk29 an actor. This actor object is passed on to STL's `find_if` function. From
32 the element is passed on as an argument `arg1` to the actor (function
33 object). The actor checks if this is an odd value based on the expression
38 when invoked. Instead, an actor (see [link phoenix.actor Actor])
43 does nothing more than return an actor. A second function call will evaluate
53 /at least/ one of its operands is an actor object
54 (see [link phoenix.actor Actor]).
55 # Unary operators are lazily evaluated if their argument is an actor object.
56 # Operator `->*` is lazily evaluated if the left hand argument is an actor object.
57 # The result of a lazy operator is an actor object that can in turn allow the
[all …]
/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/classic/phoenix/
Dprimitives.hpp12 #include <boost/spirit/home/classic/phoenix/actor.hpp>
23 // An actor base class that extracts and returns the Nth argument
25 // member function (see actor.hpp). There are some predefined
28 // The argument actor is a place-holder for the actual arguments
33 // essentially lazy arguments. A lazy argument is a full actor in
34 // its own right and can be evaluated through the actor's operator().
64 actor<argument<0> > const arg1 = argument<0>();
65 actor<argument<1> > const arg2 = argument<1>();
66 actor<argument<2> > const arg3 = argument<2>();
69 actor<argument<3> > const arg4 = argument<3>();
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/
DActor.kt10 * Scope for [actor][GlobalScope.actor] coroutine builder.
58 * A typical usage of the actor builder looks like this:
61 * val c = actor {
62 * // initialize actor's state
67 * // send messages to the actor
70 * // stop the actor when it is no longer needed
76 …* When the inbox channel of the actor is [closed][SendChannel.close] it sends a special "close tok…
77 …* The actor still processes all the messages that were already sent and then "`for (msg in channel…
78 * and the actor completes.
80 …* If the actor needs to be aborted without processing all the messages that were already sent to i…
[all …]

12345678910>>...19