[profiler] Use a semaphore to signal the writer thread.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 5 Apr 2016 08:35:43 +0000 (10:35 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Wed, 6 Apr 2016 23:15:01 +0000 (01:15 +0200)
commitd13d7b5bb3e7c124f670eb28f118250ad5502bc4
tree9e686a2b692bb7af75f47501553adcbaeb3f987e
parentfc55e27d0c6d803bcc53993ede751e8de0a0230f
[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.
mono/profiler/proflog.c