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

Antonio Galea notifications at github.com
Wed Aug 11 11:14:52 CEST 2021


> @ant9000 isn't there another mutex you could wait on (eg the read of the buffer) instead of a "just not spinning xtimer"
> I think this will eat up much(most) of your cpu in thread switching.

I fear what you suggest is not possible. My idea is that I need to wait until the available data can be **written** to the buffer. If I lock the CPU on this task, no other thread can consume what is already there and the board deadlocks - so I'd say that thread switching is absolutely necessary for things to work as intended.

But please, do correct me if my reasoning is wrong!


-- 
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-896649506
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210811/741929f6/attachment.htm>


More information about the notifications mailing list