Merge pull request #2838 from alexrp/profiler-writer-thread-cpu2
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 7 Apr 2016 04:00:33 +0000 (05:00 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 7 Apr 2016 04:00:33 +0000 (05:00 +0100)
commit346cd3d86c5dc439f7e39217d7764a8b603e96d1
treee6e9229e157893bacf225d11259d275fdc749d48
parent07cda57eb104637717da20edef016f603679724f
parentd13d7b5bb3e7c124f670eb28f118250ad5502bc4
Merge pull request #2838 from alexrp/profiler-writer-thread-cpu2

[profiler] Use a semaphore to signal the writer thread.

We would previously constantly try to dequeue from the writer queue which would
result in extremely high CPU usage, making many apps (e.g. Xamarin Studio)
nearly unusable.