[PATCH] staging: pi433: add descriptions for mutex locks

Valentin Vidic Valentin.Vidic at CARNet.hr
Fri Mar 23 11:42:54 UTC 2018


On Fri, Mar 23, 2018 at 11:22:39AM +0100, Marcus Wolf wrote:
> could you please decribe in short words, why you think, that hte lock
> isn't obsolete?
> 
> I wasn't sure, but close to remove the lock. That's why I putted the
> comment.

Sure, if pi433_tx_thread runs on one CPU it might be possible
to call pi433_write concurrently on another CPU and they would
both modify tx_fifo.  But maybe there is some other protection
in place that would prevent this?

-- 
Valentin


More information about the devel mailing list