The INonGUIThread::Cursor class creates and manages the cursor for an
INonGUIThread
object. This nested class
defines objects that you can use to traverse or iterate through a set of active threads.
In the same way that you can use a cursor to traverse the objects in a collection,
you can use this cursor to traverse a set of threads one at a time.
Typically, you traverse a set, or collection, of active threads by doing the following:
- Calling
setToFirst
- Looping through the threads using
setToNext
- Processing the returned thread IDs from
threadId
until
isValid
returns false
Note:
This class only provides access to threads that are or have been represented by an
INonGUIThread
object or an object of a derived class, such as IThread.