CLI debugging, got rid of nasty old Thread class and replaced with newer cleaner portable idiom.

This commit is contained in:
Adam Ierymenko 2013-08-05 16:06:16 -04:00
parent 3368330b77
commit a7c4cbe53a
17 changed files with 141 additions and 303 deletions

View file

@ -55,7 +55,6 @@ UdpSocket::UdpSocket(
void (*packetHandler)(UdpSocket *,void *,const InetAddress &,const void *,unsigned int),
void *arg)
throw(std::runtime_error) :
Thread(),
_packetHandler(packetHandler),
_arg(arg),
_localPort(localPort),
@ -121,7 +120,7 @@ UdpSocket::UdpSocket(
}
}
start();
_thread = Thread<UdpSocket>::start(this);
}
UdpSocket::~UdpSocket()
@ -146,7 +145,7 @@ bool UdpSocket::send(const InetAddress &to,const void *data,unsigned int len,int
}
}
void UdpSocket::main()
void UdpSocket::threadMain()
throw()
{
char buf[32768];