Boost logo

Boost :

Subject: [boost] [interprocess] (OS X) waiting on condition variable = CPU 100% + fans running loud
From: Francisco Lopes (francisco.mailing.lists_at_[hidden])
Date: 2013-01-05 21:24:03

Hi, I was implementing a kind of server using shared memory.
The server should keep idle, waiting for a request and I do this by
waiting on a condition variable, of course.

I then noticed my fans running high when I let the server waiting a
little longer while testing and discovered this happens simply because
of some busy loop implementation for condition waiting.

Is there any reason for that?

Given the interprocess library age, there's no way for implementing a
non-busy interprocess condition variable waiting available?

Francisco Lopes

Boost list run by bdawes at, gregod at, cpdaniel at, john at