Finished multi-threading code in Device.
Merge branch 'streams' of https://github.com/danielelinaro/dynclamp into develop