Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Thread safe

Hello,

in this forum someone said me that drivers of the jtag output are not thread safe, and the same for the Altera's macro to write in a cell of memory. Which is the reason? They are not reentrant? Or the reason is that are not predicibility?

Thank you

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    They are not reentrant. The JTAG Uart driver functions assume they have exclusive access to the component, and when you call them from two threads simultaneously strange things happen.

    At least this was what I saw a few years ago (Quartus II 7.2 IIRC) and it may have been fixed since.