Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Extra bit of safety. Since we check whether xinitMutex is "still NULL" to detect a threads-disabled Tcl, we should be explicitly certain it has an initial value of NULL. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7779a1c443eeb464ecaf2caf463421e5 |
User & Date: | dgp 2013-05-23 13:31:09 |
Context
2013-05-24
| ||
12:29 | Disable XInitThreads() call until we have a better test for it. check-in: 76c4cb62 user: jan.nijtmans tags: trunk | |
2013-05-23
| ||
13:31 | Extra bit of safety. Since we check whether xinitMutex is "still NULL" to detect a threads-disabled Tcl, we should be explicitly certain it has an initial value of NULL. check-in: 7779a1c4 user: dgp tags: trunk | |
08:30 | Fix for [3613668] by not calling XInitThreads when either 1) Tcl is compiled without threads 2) X11 library is too old. A more direct test would be more desirable, but for now this should be fine. check-in: c98f76a4 user: jan.nijtmans tags: trunk | |
Changes
Changes to unix/tkUnixEvent.c.
︙ | ︙ | |||
126 127 128 129 130 131 132 | int error = 0; int major = 1; int minor = 0; int reason = 0; unsigned int use_xkb = 0; #if defined(XKEYCODETOKEYSYM_IS_DEPRECATED) && defined(TCL_THREADS) static int xinited = 0; | | | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | int error = 0; int major = 1; int minor = 0; int reason = 0; unsigned int use_xkb = 0; #if defined(XKEYCODETOKEYSYM_IS_DEPRECATED) && defined(TCL_THREADS) static int xinited = 0; static Tcl_Mutex xinitMutex = NULL; if (!xinited) { Tcl_MutexLock(&xinitMutex); if (!xinited) { /* Necessary for threaded apps, of no consequence otherwise */ /* need only be called once, but must be called before *any* */ /* Xlib call is made. If xinitMutex is still NULL after the */ |
︙ | ︙ |