CodePlexProject Hosting for Open Source Software
Is CCI Metadata thread safe?
Can we read a metadata concurrently (in separate threads)?
Yes, altough this scenario has had much less testing.
I look at the implementation of NameTable and
it is not thread safe.
I think this could cause problems.
We plan to
typing AST in different threads. I
am afraid that the NameTable will cause
The nametable locks its dictionary before accessing it, which should be enough. The TODO comment is about a lock free solution. Is there another problem you can see? Please expand on your comments. Thanks.
Sorry, I was confused by TODO. :)
Why you not use a collection like ConcurrentDictionary (from FW 4) or immutable tree-map with interlocked exchange to replace the root variable?
Locks not good idea in this case.
It used to be (and perhaps still is) useful for CCI to depend only on FW 2. When a decision gets made to depend on FW 4, this would be possible.
FW 2 support is important. But, you can create analog of these classes.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.