[PATCH] Mark shared variables as volatile

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

 



'Twas brillig, and Arun Raghavan at 06/12/09 06:50 did gyre and gimble:
> 'n_waiting' and 'n_waiting_for_accept' may be accessed from mulitple
> threads, and thus need to be marked as volatile to suppres certain
> compiler optimisations. All uses are protected by a mutex, so we don't
> need to worry about cache issues (added documentation for this as well).

Both your patches pushed now (the udev one annoyed me too, but never got
round to fixing it so thanks :))

You're clearly a froody guy who knows where his towel is! :p

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux