SetContext

Function Usage

Sets the context of a thread.

Prototype

APP_ERROR SetContext(const uint32_t &deviceId);

Parameter Description

Parameter

Input/Output

Description

deviceId

Input

Current device ID of a thread.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.