Commit fbbcbc57917cfd61e5df4f2008133eac895a813f

Authored by Georg Hopp
1 parent 82b4cb57

utilize update next poll event functionality from trevent

@@ -65,6 +65,7 @@ TR_commManagerSelect(void * _this, TR_Event event) @@ -65,6 +65,7 @@ TR_commManagerSelect(void * _this, TR_Event event)
65 } 65 }
66 66
67 TR_CALL(_this, TR_CommManager, select, event, timeout); 67 TR_CALL(_this, TR_CommManager, select, event, timeout);
  68 + TR_eventDispatcherUpdateNextPoll(dispatcher);
68 69
69 return TR_EVENT_DONE; 70 return TR_EVENT_DONE;
70 } 71 }
@@ -43,7 +43,8 @@ serverCtor(void * _this, va_list * params) @@ -43,7 +43,8 @@ serverCtor(void * _this, va_list * params)
43 { 43 {
44 TR_Server this = _this; 44 TR_Server this = _this;
45 45
46 - this->comm_manager = (TR_CommManager)TR_new(TR_CommManagerEpoll); 46 + //this->comm_manager = (TR_CommManager)TR_new(TR_CommManagerEpoll);
  47 + this->comm_manager = (TR_CommManager)TR_new(TR_CommManagerPoll);
47 this->dispatcher = TR_new(TR_EventDispatcher, TR_EVD_SERVER, NULL, 100); 48 this->dispatcher = TR_new(TR_EventDispatcher, TR_EVD_SERVER, NULL, 100);
48 this->connector = TR_new(TR_Connector); 49 this->connector = TR_new(TR_Connector);
49 this->io_handler = TR_new(TR_IoHandler); 50 this->io_handler = TR_new(TR_IoHandler);
@@ -4,7 +4,7 @@ pids="" @@ -4,7 +4,7 @@ pids=""
4 i=0 4 i=0
5 while [ $i -lt 20 ] 5 while [ $i -lt 20 ]
6 do 6 do
7 - dd if=/dev/zero bs=8192 count=25000 | nc -u localhost 5678 & 7 + dd if=/dev/zero bs=8192 count=25000 | nc localhost 5678 &
8 pids="${pids} $!" 8 pids="${pids} $!"
9 i=$((i + 1)) 9 i=$((i + 1))
10 done 10 done
Please register or login to post a comment