TTaskScheduler.GetStatuses

Retrieves an snapshot of task statuses in one atomic operation

Source

Task.Scheduler.pas (64)

Description

The snapshot is taken in a thread-safe manner and provides a consistent view on the statuses of scheduled and running tasks. Due to the nature of multithreaded execution of tasks the snapshot might be slightly out-of-date, but this really is no problem as the snapshot is consistent.