Multithread with CyApi

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I am developing with Windows 7 - 32 bit. I am using CyApi with CY68013A. Can I use CyApi transfer functions ( p.e. XferData..) from two thread without mutex or semaphore, or I need to protect every call with mutex or other?

   

Thanks

   

 

   

Begos

0 Likes
1 Reply
Anonymous
Not applicable

 Hi ,

   

It is better to use BeginDatXfer instead of Xferdata. Once if the first one is in the execution then the second one will be in the queue and once the ifrst one is completed the second one can start. But if the time out happen for the second one it will fail.

   

 

   

Regards,

   

Vikas.

0 Likes