1 Reply Latest reply on Dec 6, 2012 3:01 AM by userc_39074

    Thread-safety of API's




      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?