Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

DefaultProcessorType - makes static and adds lock #224

Merged
merged 2 commits into from
Sep 5, 2017

Conversation

leekelleher
Copy link
Collaborator

As discussed on PR #223 review: #223 (comment)

@@ -108,7 +116,10 @@ public Type GetDefaultProcessorType(Type objectType)
return attr.ProcessorType;
}

return this.DefaultProcessorType;
lock (DefaultProcessorTypeLock)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need a lock for writing, not for reading.

@leekelleher leekelleher merged commit a72b56d into develop Sep 5, 2017
@leekelleher leekelleher deleted the dev/default-processor-static branch September 5, 2017 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants