Announcements

Learn how to optimise USB-C for your designs at 18 May's USB-C PD Webinar.
Click here to register.

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

Anonymous
Not applicable

Does anyone know if CCyUSBDevice is thread safe?

   

For instance, can I call XFerData() on two different endpoints from the same CCyUSBDevice from two separate threads at the same time?

2 Replies
Anonymous
Not applicable

 Yes , It is possible.

   

Thanks

   

Prajith

0 Likes
Anonymous
Not applicable

 Thanks.  Is there anything special that you have to do to allow this to happen?  I have two threads accessing two different endpoints of the same object, however after some time one of the two endpoints will never return from it's XFerData() call.  I can run each thread on its own w/o issue, however running them both at the same time causes one of the calls to lock up and never return.

0 Likes