Right, I've got a
Now this is sort of thread safe. However if I want to check an index is in the list and then retrieve it I wold normally do code like this
Now calling this isn't thread safe. So i'd have to put a sychronize block around it. However I thought of another horrible solution...
How offensive do people think that is? I think i'm going to avoid doing it but I wanted to see what people thought.
Neil
Now this is sort of thread safe. However if I want to check an index is in the list and then retrieve it I wold normally do code like this
Now calling this isn't thread safe. So i'd have to put a sychronize block around it. However I thought of another horrible solution...
How offensive do people think that is? I think i'm going to avoid doing it but I wanted to see what people thought.
Neil