X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2Finternal%2FPoll.cpp;fp=source%2Fcomm%2Finternal%2FPoll.cpp;h=a9aa01951393c8836cbb5a7fc2d4bb2611982626;hp=38b0b78bd7afc76ce01b0596f7b085634b1ccefa;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/internal/Poll.cpp b/source/comm/internal/Poll.cpp index 38b0b78..a9aa019 100644 --- a/source/comm/internal/Poll.cpp +++ b/source/comm/internal/Poll.cpp @@ -16,7 +16,7 @@ using namespace anna; void comm::Poll::setTimeout(const Millisecond &timeout) -throw() { +{ if((a_timeout.tv_sec = timeout / 1000) == 0) a_timeout.tv_usec = timeout * 1000; else @@ -32,7 +32,7 @@ throw() { // Para las dos implementacion el NULL => espera hasta que llegue un mensaje. //-------------------------------------------------------------------------------------------- void comm::Poll::waitMessage() -throw(RuntimeException) { +noexcept(false) { if(a_ptrTimeout == NULL) a_pollr = select(a_maxfd, (fd_set*) anna_memcpy(&a_fdset, &a_fdmask, sizeof(fd_set)), NULL); else { @@ -54,7 +54,7 @@ throw(RuntimeException) { // (1) Una vez que ha tratado detectado la activada desactiva el indicador //----------------------------------------------------------------------------------------- int comm::Poll::fetch() -throw() { +{ int result = -1; while(a_pollr > 0) { @@ -77,7 +77,7 @@ throw() { } void comm::Poll::insert(const int fd) -throw() { +{ FD_SET(fd, &a_fdmask); if(a_maxfd < fd) a_maxfd = fd; @@ -91,7 +91,7 @@ throw() { // de pendientes de tratar. //--------------------------------------------------------------------------------------- void comm::Poll::erase(const int fd) -throw() { +{ FD_CLR(fd, &a_fdmask); if(FD_ISSET(fd, &a_fdset) && a_pollr > 0) { // (1)