This chapter describes using C++ to implement agent entry points. It also describes agent primitives, the C++ functions provided by the agent framework.
Because the agent framework is multithreaded, all C++ code written by the agent developer must be MT-safe. For best results, avoid using global variables. If you do use them, access must be serialized (for example, by using mutex locks).
The following guidelines also apply:
readdir_r
() instead of readdir
(). Access manual pages for either of these commands by entering: man
command.
pthread_cleanup_push
and pthread_cleanup_pop
for details. Access manual pages for either of these commands by entering: man
command.