OSDN Git Service

gallium/hud: protect against and initialization race
authorSteven Toth <stoth@kernellabs.com>
Mon, 24 Oct 2016 14:10:51 +0000 (10:10 -0400)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 7 Nov 2016 17:31:52 +0000 (18:31 +0100)
commit381edca826ee27b1a49f19b0731c777bdf241b20
tree2e9514b12c7c6add0591a95326ab6d437ca09f66
parent5a58323064b32442e2de23c95642bc421be696f8
gallium/hud: protect against and initialization race

In the event that multiple threads attempt to install a graph
concurrently, protect the shared list.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/hud/hud_cpufreq.c
src/gallium/auxiliary/hud/hud_diskstat.c
src/gallium/auxiliary/hud/hud_nic.c
src/gallium/auxiliary/hud/hud_sensors_temp.c