adding synchronization on "val" due to possible race conditions (thanks to Damien Octeau for reporting this!)
adding synchronization on "val" due to possible race conditions (thanks to Damien Octeau for reporting this!)

StevenArzt/heros,Sable/heros,johspaeth/heros,johanneslerch/heros,jgarci40/heros