XLL+ Class Library

ThreadManager class

The add-in uses an external class, ThreadManager, to handle the pool of worker threads. The code of the class is all contained in the header file ThreadManager.h, and a detailed discussion of its mechanics is beyond the scope of this document.

The only methods used by the add-in are the following public functions:

FunctionDescription
Init() Prepares a ThreadManager instance for use. Returns false if initialization fails. Must be called from main thread.
Term() Terminates a ThreadManager. Stops all worker threads. Must be called from main thread.
StartThread(fn, userData) Creates a new task, to be run when a thread becomes available. Must be called from main thread.

Next: RTD mechanism >>