Service Objects
Introduction
A Service object creates and handles threads that help event managers dispatch events. Typically, one will use a Service Object to create threads that will call mpiEventMgrService whenever an XMP interrupt occurs. They are a convenient way to have a program automatically deal with event managers and events. Thread handling is something that is different on every operating system. Service objects may therefore have different behaviors on different operating systems. Programmers that are experienced in multi-threaded application programming will probably want to program their own threads that will call mpiEventMgrService.
NOTE: The Service object is not part of the standard MPI. In order to use the Service Object, the file, apputil.h needs to be included by your code and the apputil library needs to be linked to your application.
Methods
Create, Delete, Validate Methods | ||
serviceCreate | Create a Service for EventMgr and the threads necessary for it to run. | |
serviceDelete | Stop all threads belonging to the Service and deletes the Service. |
Configuration and Information Methods | ||
serviceEnable | Enable or disables the Service. |