From a7c4cbe53aad51b3e74fa9cb1af975cb8d356954 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 5 Aug 2013 16:06:16 -0400 Subject: CLI debugging, got rid of nasty old Thread class and replaced with newer cleaner portable idiom. --- node/UdpSocket.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'node/UdpSocket.cpp') diff --git a/node/UdpSocket.cpp b/node/UdpSocket.cpp index 6178d16e..db2c4b56 100644 --- a/node/UdpSocket.cpp +++ b/node/UdpSocket.cpp @@ -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::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]; -- cgit v1.2.3