[PATCH xorg-gtest 0/2] don't poll, wait for SIGUSR1

Daniel Martin consume.noise at gmail.com
Mon Oct 1 16:22:45 PDT 2012


With the first patch xorg-gtest will use the SIGUSR1 mechanism offered by
the XServer to get notified when the XServer is ready to accept connections.

Due to that we don't need to poll the XServer until it's ready and we can
remove WaitForConnections(). That's what the second patch does.

Round trips for basic tests went down from ~415ms to ~236ms on my slow Intel
U5400 at 1.2GHz. That's round about 44% faster as with polling.

Daniel Martin (2):
  xserver: use SIGUSR1 to wait for XServer startup
  Remove WaitForConnections()

 include/xorg/gtest/xorg-gtest-xserver.h |  5 ---
 src/environment.cpp                     |  1 -
 src/xserver.cpp                         | 64 ++++++++++++++++-----------------
 3 files changed, 31 insertions(+), 39 deletions(-)

-- 
1.7.12.2



More information about the xorg-devel mailing list