17.4 pragma Task_Info

The functionality provided by pragma Task_Info is now part of the Ada language. The CPU aspect and the package System.Multiprocessors offer a less system-dependent way to specify task affinity or to query the number of processors.

Syntax

pragma Task_Info (EXPRESSION);

This pragma appears within a task definition (like pragma Priority) and applies to the task in which it appears. The argument must be of type System.Task_Info.Task_Info_Type. The Task_Info pragma provides system dependent control over aspects of tasking implementation, for example, the ability to map tasks to specific processors. For details on the facilities available for the version of GNAT that you are using, see the documentation in the spec of package System.Task_Info in the runtime library.