[riot-notifications] [RIOT-OS/RIOT] Blocking mode for USBUS CDC ACM STDIO (see #16500) (#16508)

Antonio Galea notifications at github.com
Thu Aug 12 11:27:09 CEST 2021


> you would need a new mutex (not the one inside the isr_pipe) (instead of a new timer)
> lock it if you are not able to write to the buffer and unlock it if when data is read from the buffer (you can unlock it every time as the unlock performs a check if it was locked) and you just lock it if you cloud not write (as the test write to isr_pipe is safe).
> 
> atm i am not sure where the `_cdc_acm_rx_pipe` is run i would assume it run in the usb event thread?
> therefor all other threads are free to run and the usb event thread is blocked (like it is in this with the timer)

Your suggestion makes a lot of sense. I've rewritten the code, and it indeed works faster.

Thank you very much!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16508#issuecomment-897486713
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210812/ef142f89/attachment.htm>


More information about the notifications mailing list