CyUSB Threadsafe??? | Cypress Semiconductor
I cannot find anyplace in the documentation that this is mentioned. When I strip down to bulk IO calls from the main thread, all is OK. When I have a worker threadfor EP6 calling xferdata and a thread for EP8 calling xferdata , and each thread stuff the data into a c# Queue protected by Lock I am getting some really horrid lockups that hang the dev environment until I unplug the USB.
The Queue stuff with lock protecting it shoudl be fine. Lots do that all over the net.
Luckily it reproduces easily in seconds. But perhaps two threads each calling bulk xferdata isn't allowed?