_dbus_bindings/module.c: If Python is older than 2.4.2c1, initialize threads.
commit6376c0c422063a48554719f9ec72162c1b63fdda
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 14 Dec 2006 16:18:13 +0000 (14 16:18 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 14 Dec 2006 16:18:13 +0000 (14 16:18 +0000)
treeaa04cb07e9e667a6444c6fd755081f3713203638
parent274314c98304fdaa23bcc7b3940ab48e7afe0e8c
_dbus_bindings/module.c: If Python is older than 2.4.2c1, initialize threads.
In newer versions the PyGILState API is allowed even when threads haven't been
initialized yet, but in 2.4.1 it causes a crash. It's desirable to avoid
initializing threads until just before the second thread is created, since
this creates locking overhead which isn't needed until the app actually goes
multi-threaded.
_dbus_bindings/module.c