Nov 13 – 15, 2018
America/Vancouver timezone

Real-Time Condition Variables: librtpi

Nov 13, 2018, 2:00 PM
Pavillion/Ballroom-C (Sheraton Vancouver Wall Center)


Sheraton Vancouver Wall Center

RT MC topics CfP RT MC


Darren Hart Julia Cartwright


POSIX condition variables (condvars) provide a commonly used interprocess communication mechanism. Threads can queue up and wait for an event before continuing. The glibc implementation of condvars in 2009 was not suitable for use in real-time systems due to a potential priority inversion. A fix has been available and used in many real-time systems since that time. A recent change to glibc to address a POSIX compliance issue with condvars broke that fix and modified the implementation in such a way as to prevent real-time usage of glibc condvars by introducing new type of priority inversion.

The real-time use case places constraints on condvar usage patterns, such as requiring a PI mutex to be associated with the condvar prior to a signal or broadcast. Most importantly, the implementation must always wake the waiters in priority FIFO order. To address this usage, the librtpi project provides a narrow real-time specific implementation of the condition variable mechanism in a way which can be readily used in lieu of the glibc implementation.

We will discuss the motivation and the current state of the project, as well as the long term strategy for a stable real-time condvar implementation.

I agree to abide by the anti-harassment policy Yes

Primary authors

Darren Hart Julia Cartwright


Sebastien Siewior (Linutronix)

Presentation materials

Platinum sponsors

Gold sponsors

Silver sponsors

Catchbox sponsor
T-Shirt sponsor