XLL+ Class Library (7.0)

CRtdAsyncManager Class

Provides access to the asynchronous function API, allowing the developer to control the background threads.

class CRtdAsyncManager


The CRtdAsyncManager class manages the execution of asynchronous worksheet functions. These functions return #WAIT! when they are initially calculated, and start a task in a background (worker) thread. When the task is complete, the Excel RTD mechanism is used to inform Excel that the cell should be recalculated; the final result is then returned to Excel.


The object should not be created directly. A single instance of the class is created on demand by the method CXllApp::GetRtdAsyncManager().

Once you have retrieved a pointer to the CRtdAsyncManager instance, you can set the maximum number of threads used by the asynchronous function mechanism with the SetMaxThreads() method. During operation, you can use Stop() and Start() to control the worker threads.


Header: rtdlink.h

See Also

CRtdAsyncManager Methods | rtdlink.h | CRtdLink object