You are here

Thread-safety of API's | Cypress Semiconductor

Thread-safety of API's

Summary: 1 Reply, Latest post by RSKV on 06 Dec 2012 03:01 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
RobK's picture
81 posts


in my FX3-firmware I have two threads where one thread accesses one DMA-channel and another thread accesses another DMA-channel. For accessing the DMA-channels I use both the same API CyU3PDmaChannelGetBuffer(), CyU3PDmaChannelCommitBuffer() and CyU3PDmaChannelDiscardBuffer().

Do I have to protect the accesses to the DMA-engine by a mutex so that only one thread accesses the same API or are the API's thread-safe in a way that in the API-implementation the accesses are already protected by mutexes?




rskv's picture
Cypress Employee
1134 posts

Hi Rob,

Yes. They are already protected by mutexes.



sai krishna.

Log in to post new comments.