Example plugin for QGIS on how to use plugin layers with multi-threaded rendering