[alsa-devel] [PATCH v2 2/4] ASoC: hdmi-codec: remove reference to the current substream

Mark Brown broonie at kernel.org
Wed May 8 09:00:58 CEST 2019


On Mon, May 06, 2019 at 11:58:13AM +0200, Jerome Brunet wrote:

> Remove current_substream pointer and replace the exclusive locking
> mechanism with a simple variable and some atomic operations.

The advantage of mutexes is that they are very simple and clear to
reason about.  It is therefore unclear that this conversion to use
atomic variables is an improvement, they're generally more complex 
to reason about and fragile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190508/58a55557/attachment-0001.sig>


More information about the Alsa-devel mailing list