Theron  6.00.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Theron::Framework::Framework ( const Parameters params = Parameters())
inlineexplicit

Constructor.

Constructs a framework with the given parameters. The parameters control the size and processor affinity of a framework's threadpool.

class MyActor : public Theron::Actor
{
public:
explicit MyActor(Theron::Framework &framework) : Theron::Actor(framework)
{
}
};
Theron::Framework framework(params);
MyActor actorOne(framework);
MyActor actorTwo(framework);
Note
In distributed applications, use the constructor variant that accepts an EndPoint.