Commit 50fe4286 authored by jan.koester's avatar jan.koester
Browse files

epoll without goto

parent 2d638482
Loading
Loading
Loading
Loading
+37 −37
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ namespace netplus {
        EventWorker(int tid,ULONG_PTR args,EventWorkerArgs* eargs) {
            poll pollptr(eargs->ssocket,eargs->event,eargs->pollfd,eargs->timeout);

EVENTLOOP:
            for(;;){
                try {
                    int wait=pollptr.waitEventHandler();
                    for(int i =0; i<wait; ++i){
@@ -377,7 +377,7 @@ EVENTLOOP:
                        std::cerr << e.what() << std::endl;
                    }
                }
            goto EVENTLOOP;
            }
        }
    };