Skip to content

Is conf.IncludePaths.Add thread safe? #310

Answered by jspelletier
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
I think I misunderstood your initial question!
Each project is processed in a separate thread and each project is only allowed to modify its own fields. For example, to modify IncludePaths property of a specific configuration, this is done via Configure methods. If you follow the rules, the app is 100% safe.

so if you got ProjectA and ProjectB, you are not allowed to modify the include paths of ProjectB from ProjectA and vice-versa.

There is also some constraint on when those collections can be modified. Also, once the configure methods are all executed, many collections become readonly(there is some checks for that).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@jspelletier
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant