Commit Graph
4 Commits
Author SHA1 Message Date
Nathan Froyd ba2fb3b1d7 Bug 1486039 - use a more-portable idiom for pausing in SpinEvent::Wait; r=aklotz
YieldProcessor is apparently defined to do the same thing on x86 as our
custom macros, but includes implementations for non-x86 processors.
2018-08-28 09:27:57 -04:00
James Teh 97a420973e Bug 1429665: ipc::mscom::SpinEvent: Only spin for a short time, falling back to an event thereafter. r=aklotz
We want to spin for faster response, but we only want to spin for a very short time.
If we're waiting for a while, we don't want to be burning CPU for the entire time.
Therefore, only spin for 30 ms, then fall back to waiting on an event.

MozReview-Commit-ID: ErAIwpsIqYz
2018-01-15 14:51:19 +10:00
Andrew McCreight 78bf10d4b1 Bug 1350688 - Use a thread safe way to get the CPU count in the SpinEvent ctor. r=aklotz
Initializing nsSystemInfo can't be done off the main thread on
Windows, and we can't guarantee that it has been initialized before
calling this code.

MozReview-Commit-ID: DRNCrakNMmH
2017-03-26 06:56:01 -07:00
Aaron Klotz e94bcd41f4 Bug 1339945: Refactor mscom::MainThreadInvoker's wait mechanism into a separate class; r=handyman
MozReview-Commit-ID: BikO5ng6joM
2017-02-10 11:27:01 -07:00