From 1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Apr 2010 17:07:55 +0000 Subject: The Bu::Ito thread class has changed the rules on the run function. It no longer returns anything, that's fine, it's in a class, but it also is protected now. That doesn't really effect child classes much, they can make run public, but I reccomend protected to avoid confusion. --- src/itoserver.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/itoserver.cpp') diff --git a/src/itoserver.cpp b/src/itoserver.cpp index 0640aad..279310d 100644 --- a/src/itoserver.cpp +++ b/src/itoserver.cpp @@ -74,7 +74,7 @@ void Bu::ItoServer::addClient( int nSocket, int nPort ) pC->start(); } -void *Bu::ItoServer::run() +void Bu::ItoServer::run() { for(;;) { @@ -105,8 +105,6 @@ void *Bu::ItoServer::run() delete pCli; } } - - return NULL; } void Bu::ItoServer::clientCleanup( int iSocket ) @@ -138,7 +136,7 @@ Bu::ItoServer::ItoClient::~ItoClient() { } -void *Bu::ItoServer::ItoClient::run() +void Bu::ItoServer::ItoClient::run() { imProto.lock(); rSrv.onNewConnection( pClient, iPort ); @@ -186,7 +184,7 @@ void *Bu::ItoServer::ItoClient::run() rSrv.clientCleanup( iSocket ); - return NULL; + return; } } @@ -197,8 +195,6 @@ void *Bu::ItoServer::ItoClient::run() imProto.unlock(); } } - - return NULL; } Bu::ItoServer::SrvClientLink::SrvClientLink( ItoClient *pClient ) : -- cgit v1.2.3