summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-11-21 17:52:34 -0800
committerJamey Sharp <jamey@minilop.net>2006-11-21 17:52:34 -0800
commita1168e11ec9377307c51a7271faec3bf88a63a66 (patch)
treeafd2140590386858fb9fa84f8bc85cdebab9f1a7
parent67abe024268c6b1fdee516e5d3a046ccffd7e80a (diff)
Add note in man-page that XListFontsWithInfo is not thread-safe.
_XReply drops the Display lock, so the value of dpy->request may change before _XReply is called again. I discovered this by inspection a year or two ago. I'm pretty confident in the claim, and nobody has come up with an argument for why it's safe despite appearances.
-rw-r--r--man/XListFonts.man6
1 files changed, 6 insertions, 0 deletions
diff --git a/man/XListFonts.man b/man/XListFonts.man
index 41a88ee..880ff0c 100644
--- a/man/XListFonts.man
+++ b/man/XListFonts.man
@@ -253,6 +253,12 @@ is passed, the structure is freed,
but the font is not closed; use
.ZN XUnloadFont
to close the font.
+.LP
+Note that
+.ZN XListFontsWithInfo
+is not thread-safe. If other threads make X requests on the same
+.ZN Display ,
+then this function's behavior is undefined.
.SH "SEE ALSO"
XLoadFont(3X11),
XSetFontPath(3X11)