<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Fri, 2011-02-04 at 16:42 +0200, Rami Ylimäki wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">This change makes it possible to detect missing XInitThreads calls in</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">X clients. If a client hasn't called XInitThreads and enters a</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">critical section in Xlib concurrently, the client will be aborted with</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">a message informing about the missing call.</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">Enabling thread safety by default causes a minor performance</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">regression for single threaded X clients. However, the performance</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">regression is only noticeable in the worst case situation. In</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">realistic use cases the overhead from unnecessary locking is difficult</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">to see.</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">Relative x11perf results showing the amount of regression for worst</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">case and some common operations are shown below.</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a"> unlocked/locked Operation</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">----------------- ------------------------------------</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> 1.001 500-pixel line</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> 1.000 Copy 500x500 from window to window</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> 2.609 X protocol NoOperation</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">Signed-off-by: Rami Ylimäki <<A HREF="mailto:rami.ylimaki@vincit.fi">rami.ylimaki@vincit.fi</A>></FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">Reviewed-by: Erkki Seppälä <<A HREF="mailto:erkki.seppala@vincit.fi">erkki.seppala@vincit.fi</A>></FONT></TT><BR>
<BR>
</BLOCKQUOTE>
For the configuration part,<BR>
<BR>
Reviewed-by: <TT><FONT COLOR="#1a1a1a">Gaetan Nadon <<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>></FONT></TT>
</BODY>
</HTML>