Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #249 #28

Closed
wants to merge 3 commits into from
Closed

Issue #249 #28

wants to merge 3 commits into from

Conversation

FelicePollano
Copy link
Contributor

This pull request will solve the Issue #249 ( thread safety ). I branched out all other modification I have on my repository so the merge should be easy. The only thing "exogenous" to the pure issue soving is a compilation flag ( *HAVEOFFICE *) I added in order to compile the whole solution even if no office interop are available.

@FelicePollano
Copy link
Contributor Author

No problem, I fix the problem and I try to do this pull request from scratch in order to see if issues disappear.


// Special case for events.
if (!FluentMockContext.IsActive)
lock (Mock) // this solves issue #249, but actually worsen method complexity :(
Copy link

Choose a reason for hiding this comment

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

This doesn't really "fix" multi-threading issues; it avoids them; breaking any actual required use of concurrency by forcing them not to overlap. I've raised Issue #62 about this 👎 We've had to roll back to 4.0 for our concurrency tests to work.

@devlooped devlooped locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants