Question : Does CMap support multi-threading?

Hi,

I use CMapct*,NXIBaseObject*> - does it support several thread access it for read, for write?

Answer : Does CMap support multi-threading?

Please notice, that I am talking that several thread will only READ (!!!).
So, again the question is: do you still think that it's risky?

Somehow the values have to be written to the map.  If there is only the main thread when values are being written then it is safe (at that point in time it is not multi-threading).
As I said earlier the problem is when data is being written and when data is being read.  Multiple threads reading data should be perfectly safe BUT you must guarantee that data is not being written when reads could occur.  


So, IF it the threads are only reading then the answer is no, that should not be risky.
Random Solutions  
 
programming4us programming4us