Function Snpe_SNPEBuilder_SetSingleThreadedInit

Function Documentation

Snpe_ErrorCode_t Snpe_SNPEBuilder_SetSingleThreadedInit(Snpe_SNPEBuilder_Handle_t snpeBuilderHandle, int singleThreadedInit)

Sets up the entire initialization callflow to happen on the user’s thread.

Parameters
  • snpeBuilderHandle[in] Handle to access the SNPEBuilder object

  • singleThreadedInit[in] Flag indicating user’s intent to perform initialization callflow on caller’s thread. When set to 1, initialization will happen on the user’s thread When set to 0, initialization will happen on a new thread. This is the default behavior (analogous to not calling this API)