-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove compile time condition on Sleep() in ProcessServerMessages().
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b4169d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Glen.
The Thread.Sleep(1) is needed because the mono thread starvation problem, right? I agree it's bad to have compile-time checks of this kind (you don't know which DLL will run where), but why not make this a runtime check? http://www.mono-project.com/FAQ:_Technical, section "How can I detect if am running in Mono?"