Time to get rid of the horrible coding style
This commit is contained in:
parent
534ee610d8
commit
efc594f888
53 changed files with 1137 additions and 1136 deletions
|
@ -26,7 +26,7 @@ void EchoClient::Echoed( const DBus::Variant& value )
|
|||
* For some strange reason, libdbus frequently dies with an OOM
|
||||
*/
|
||||
|
||||
static const int THREADS = 16;
|
||||
static const int THREADS = 3;
|
||||
|
||||
static bool spin = true;
|
||||
|
||||
|
@ -40,7 +40,7 @@ void* greeter_thread( void* arg )
|
|||
|
||||
snprintf(idstr, sizeof(idstr), "%lu", pthread_self());
|
||||
|
||||
for(int i = 0; i < 100 && spin; ++i)
|
||||
for (int i = 0; i < 30 && spin; ++i)
|
||||
{
|
||||
cout << client.Hello(idstr) << endl;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ DBus::Int32 EchoServer::Random()
|
|||
|
||||
DBus::String EchoServer::Hello(const DBus::String &name)
|
||||
{
|
||||
sleep (10);
|
||||
return "Hello " + name + "!";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue