Improve shared_ptr thread safety
Improve shared_ptr thread safety

use atomic operations for all accesses to reference counter

Change-Id: Ic26565438185c31fc2326dda7baba23f384f95a6

bmwcarit/capu,bmwcarit/capu