[pulseaudio-discuss] [PATCH] Mark shared variables as volatile

Colin Guthrie gmane at colin.guthr.ie
Sun Dec 6 03:59:53 PST 2009


'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/]




More information about the pulseaudio-discuss mailing list