Changeset 4105
- Timestamp:
- Apr 26, 2012 11:45:09 PM (13 years ago)
- Location:
- pjproject/branches/1.x/pjlib/src/pjlib-test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c
r3553 r4105 23 23 static pj_ioqueue_key_t *key; 24 24 static pj_atomic_t *total_bytes; 25 static pj_bool_t thread_quit_flag; 25 26 26 27 struct op_key … … 146 147 } 147 148 148 for (;;) {149 while (!thread_quit_flag) { 149 150 pj_time_val timeout; 150 151 timeout.sec = 0; timeout.msec = 10; 151 152 rc = pj_ioqueue_poll(ioqueue, &timeout); 152 153 } 153 PJ_UNREACHED(return 0;)154 return 0; 154 155 } 155 156 -
pjproject/branches/1.x/pjlib/src/pjlib-test/udp_echo_srv_sync.c
r3553 r4105 22 22 23 23 static pj_atomic_t *total_bytes; 24 static pj_bool_t thread_quit_flag = 0; 24 25 25 26 static int worker_thread(void *arg) … … 29 30 pj_status_t last_recv_err = PJ_SUCCESS, last_write_err = PJ_SUCCESS; 30 31 31 for (;;) {32 while (!thread_quit_flag) { 32 33 pj_ssize_t len; 33 34 pj_status_t rc; … … 57 58 } 58 59 } 59 PJ_UNREACHED(return 0;)60 return 0; 60 61 } 61 62
Note: See TracChangeset
for help on using the changeset viewer.