leapmotion / autowiring

A C++ Inversion of Control Framework
http://autowiring.io/
Apache License 2.0
149 stars 17 forks source link

Add a lock for `m_ContextIDs` and `m_ContextPtrs` #958

Closed codemercenary closed 8 years ago

codemercenary commented 8 years ago

These members are often accessed in an unsynchronized context, synchronize them by adding a spin lock to ensure we do not wind up with memory smashers when using Autonet in highly concurrent settings.