raptorswing / MapGraphics

A tile-based "slippy map" library written in/for C++/Qt. It's meant to enable C++/Qt developers to easily add nice, interactive maps to their applications. Supports zooming, rotating, interactive custom map objects, transparency, etc. It is a Qt map widget that can use tiles from MapQuest, Openstreetmap, or a custom source you define.
Other
163 stars 77 forks source link

MapGraphicsNetwork: use mutex to protect QHash list #15

Closed otherjason closed 9 years ago

otherjason commented 9 years ago

The list could be accessed concurrently if multiple threads call MapGraphicsNetwork::getInstance() at the same time. If one thread attempts to insert into the list while another is accessing it, crashes can occur.

raptorswing commented 9 years ago

Good find - thanks.