* 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:
parent
b116f68663
commit
568ec7fc45
10 changed files with 137 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -168,6 +168,11 @@ void Dispatcher::dispatch_pending()
|
|||
}
|
||||
}
|
||||
|
||||
void DBus::_init_threading()
|
||||
{
|
||||
dbus_threads_init_default();
|
||||
}
|
||||
|
||||
void DBus::_init_threading(
|
||||
MutexNewFn m1,
|
||||
MutexFreeFn m2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue