* Added a wrapper for dbus_threads_init_default

* Added a wrapper for dbus_connection_set_exit_on_disconnect
* Added a multithreaded test case for the echo example


git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@11874 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
pdurante 2007-07-07 01:23:13 +00:00
parent b116f68663
commit 568ec7fc45
10 changed files with 137 additions and 5 deletions

View file

@ -282,6 +282,11 @@ void Connection::disconnect()
dbus_connection_close(_pvt->conn);
}
void Connection::exit_on_disconnect( bool exit )
{
dbus_connection_set_exit_on_disconnect(_pvt->conn, exit);
}
bool Connection::unique_name( const char* n )
{
return dbus_bus_set_unique_name(_pvt->conn, n);

View file

@ -168,6 +168,11 @@ void Dispatcher::dispatch_pending()
}
}
void DBus::_init_threading()
{
dbus_threads_init_default();
}
void DBus::_init_threading(
MutexNewFn m1,
MutexFreeFn m2,