This is a really simple mechanism. There is no atomicity and the caller is expected to hold the display lock.