dbus/test/glib test-profile.c,1.20,1.21

Havoc Pennington hp at freedesktop.org
Thu Feb 24 10:37:18 PST 2005


Update of /cvs/dbus/dbus/test/glib
In directory gabe:/tmp/cvs-serv14225/test/glib

Modified Files:
	test-profile.c 
Log Message:
2005-02-24  Havoc Pennington  <hp at redhat.com>

	* dbus/dbus-server.c, dbus/dbus-server-unix.c: change semantics so
	you must disconnect before unref, since locking and other things
	are screwed up otherwise. Fix assorted other locking stuff.

	* dbus/dbus-signature.c (dbus_signature_iter_get_element_type):
	fix compilation

	* dbus/dbus-threads-internal.h: move the mutex/condvar wrappers
	into a private header and don't export from the library

	* throughout - call _dbus_thread_stuff vs. dbus_thread_stuff



Index: test-profile.c
===================================================================
RCS file: /cvs/dbus/dbus/test/glib/test-profile.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- test-profile.c	17 Feb 2005 21:19:48 -0000	1.20
+++ test-profile.c	24 Feb 2005 18:37:16 -0000	1.21
@@ -48,7 +48,7 @@
  */
 #define N_CLIENT_THREADS 1
 /* It seems like at least 750000 or so iterations reduces the variability to sane levels */
-#define N_ITERATIONS 750
+#define N_ITERATIONS 750000
 #define N_PROGRESS_UPDATES 20
 /* Don't make PAYLOAD_SIZE too huge because it gets used as a static buffer size */
 #define PAYLOAD_SIZE 0
@@ -303,8 +303,9 @@
 
 static void
 no_bus_stop_server (ServerData *sd,
-                      void       *server)
+                    void       *server)
 {
+  dbus_server_disconnect (server);
   dbus_server_unref (server);
 }
 



More information about the dbus-commit mailing list