Ticket #10721: slot_call_iterator.hpp.patch
File slot_call_iterator.hpp.patch, 648 bytes (added by , 8 years ago) |
---|
-
slot_call_iterator.hpp
Release tracked shared_ptrs outside the lock to avoid a deadlock if boost::signals2::mutex doesn't lock recursively.
113 113 } 114 114 for(;iter != end; ++iter) 115 115 { 116 cache->tracked_ptrs.clear(); 116 117 lock_type lock(**iter); 117 cache->tracked_ptrs.clear();118 118 (*iter)->nolock_grab_tracked_objects(std::back_inserter(cache->tracked_ptrs)); 119 119 if((*iter)->nolock_nograb_connected()) 120 120 {