Changing threading semantics from init early to init before second thread

Alexander Larsson alexl at redhat.com
Fri Aug 25 06:15:57 PDT 2006


On Thu, 2006-08-24 at 14:47 -0400, Havoc Pennington wrote:

> Not suggesting that at all - dbus_threads_disable() would have to be 
> called before you used any thread functions, and would then make those 
> functions no-op instead of implicitly initializing the built-in thread 
> abstraction. So e.g. dbus-daemon would call this at the start of main().

Here is an implementation of this. I didn't actually build the win32
side this time, but it didn't really change, so i expect it to work.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's an impetuous one-eyed librarian with a passion for fast cars. She's a 
mentally unstable punk stripper from aristocratic European stock. They fight 
crime! 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-threads-3.patch
Type: text/x-patch
Size: 33983 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060825/162fd173/dbus-threads-3-0001.bin


More information about the dbus mailing list