< Ada Programming < Attributes 
 
 
      
Ada. Time-tested, safe and secure.
Description
X'Identity is an Ada attribute where X is any task. This attribute returns a unique identifying string (of type "Task_ID"). This string is used in some Ada tasking libraries for task identification. It may also be used directly by the user for output purposes, to determine if two tasks are the same task, etc.
Example
taskMy_Task;taskMy_Other_Task; ...ifMy_Task'Identity = My_Other_Task'Identitythen-- Do somethingendif;
See also
Wikibook
Ada Reference Manual
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.