NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Multiple Threads using Codec Engine Handle

From Texas Instruments Wiki
Jump to: navigation, search

Within a process, all threads can technically share the same Engine handle returned from Engine_open(). However, as documented in the Engine_open() API Reference Guide, this Engine handle is not thread-safe, meaning only one thread should use it at a time.

The common and recommended usage for multi-threaded applications is to, rather than have one thread obtain Engine handle and share it, have each thread independently call Engine_open() to obtain its own Engine handle. As expected, before exiting, each thread should also call Engine_close().

The order is not important. In homogeneous multicore systems, the slave will be loaded when the first thread calls Engine_open(); other Engine_open() calls will return unique Engine handles, and increment a reference count on the slave device. Once the last thread calls Engine_close(), the reference count will reach zero and the slave will be unloaded/stopped.

Finally, note that these details are all local to a single process. When multiple applications may need to use a slave processor, they should be configured to use the Link Arbiter Daemon - LAD.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Multiple Threads using Codec Engine Handle here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Multiple Threads using Codec Engine Handle here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Multiple Threads using Codec Engine Handle here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Multiple Threads using Codec Engine Handle here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity