News for hackers. Stuff that matters.
Re:The Fastest Mutexes by xmodem on Thursday October 03, 2024 @09:01AM (#41730390)
What type of scenarios come up in RT/audio code where an alternative path is available if you can't get a lock? In most of the concurrent code I've written the options available if I can't get a lock is some subset of try again, try again with backoff, or fail.
Re:The Fastest Mutexes by Archit3ch on Thursday October 03, 2024 @09:32AM (#41730647)
Let's say you are doing audio processing in the real-time thread. You try to lock to read new parameters, and if you fail to get the lock you do the processing with the old parameters.