Download libcppa - boost.org

Transcript
13 Group Communication
30
13.1 Anonymous Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
13.2 Local Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
13.3 Spawn Actors in Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
14 Platform-Independent Type System
14.1 User-Defined Data Types in Messages
31
. . . . . . . . . . . . . . . . . . . . . . .
15 Blocking API
31
32
15.1 Receiving Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
15.2 Receiving Synchronous Responses . . . . . . . . . . . . . . . . . . . . . . . . .
34
16 Strongly Typed Actors
16.1 Spawning Typed Actors
35
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
16.2 Class-based Typed Actors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
36
17 Common Pitfalls
38
17.1 Event-Based API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
17.2 Synchronous Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
17.3 Sending Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
17.4 Sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
17.5 Constructors of Class-based Actors . . . . . . . . . . . . . . . . . . . . . . . . .
38
18 Appendix
39
18.1 Class option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
18.2 Using aout – A Concurrency-safe Wrapper for cout . . . . . . . . . . . . . . .
40