I have a data structure of QMap<QList<QList<float>>>
. I want to compare every single float with a threshold value using multi-threading(as the amount of float is huge, 1000*800*800). However QtConcurrent::map only accepts QList or QVector as input sequence type, but I require the QMap.key() component in my map function to perform other stuff, is there any solution to it? Thank you.
Asked
Active
Viewed 273 times
0

Komgcn
- 323
- 2
- 12
-
Manually spawn a thread for each element of the map? – NathanOliver Sep 19 '18 at 13:09
-
2The data structure `QMap
>>` is invalid. Your QMap is missing either a key or value type. Could you please provide a real-world example? – Martin Hennings Sep 19 '18 at 13:56 -
@MartinHennings sorry I mean `QMap
>>` – Komgcn Sep 20 '18 at 02:48 -
Looks like you need to refine your concurrent function. Please show us what you have (or what you think should work). – Martin Hennings Sep 20 '18 at 08:35