2.3.138. THREAD

Sets the specified thread to be the current thread.

Syntax

THREAD [{,next|,default}]

THREAD [=thread]

where:

next

Change the current thread to be the next one in the list of threads.

default

Ensures that there is a valid current thread.

thread

Define the thread that is to become the current thread. You can use the thread name or the thread ID.

Description

The THREAD command sets the specified thread to be the current thread.

The current thread is normally set by whichever thread stops last. This command enables you to specify a thread that is to be the current thread. By default, all actions apply to the current board, process, and thread.

Examples

The following examples show how to use THREAD:

thread,next

Change the current thread to the next thread.

thread =thread_2

Change the current thread to the thread named thread_2.

thread =0x13dac

Change the current thread to the thread with an ID of 0x13dac.

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0175N
Non-ConfidentialID052111