Re: [libgpiod] Question regarding locks / race conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 17, 2023 at 10:13:18AM -0400, Sameh Mohamed wrote:
> Thanks Kent and Bartosz,
> 
> @Kent: you are correct, I don't intend to share any line requests on the
> same line, rather I am curious what will happen if two threads create two
> requests for two lines at the same time.  For instance two threads setting
> values on different GPIO pins but at the same time.
> 

No locks necessary - the kernel will deal with any resource contention
internally.

Cheers,
Kent.




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux