Changeset 5953
- Timestamp:
- Mar 15, 2019 10:22:11 AM (6 years ago)
- Location:
- pjproject/trunk/pjlib/src/pjlib-test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ioq_perf.c
r5170 r5953 281 281 /* randomize outgoing buffer. */ 282 282 pj_create_random_string(items[i].outgoing_buffer, buffer_size); 283 284 /* Init operation keys. */ 285 pj_ioqueue_op_key_init(&items[i].recv_op, sizeof(items[i].recv_op)); 286 pj_ioqueue_op_key_init(&items[i].send_op, sizeof(items[i].send_op)); 283 287 284 288 /* Create socket pair. */ -
pjproject/trunk/pjlib/src/pjlib-test/ioq_tcp.c
r4550 r5953 143 143 int pending_op = 0; 144 144 pj_ioqueue_op_key_t read_op, write_op; 145 146 // Init operation keys. 147 pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 148 pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 145 149 146 150 // Start reading on the server side. … … 303 307 } 304 308 309 // Init operation key. 310 pj_ioqueue_op_key_init(&accept_op, sizeof(accept_op)); 311 305 312 // Concurrency 306 313 rc = pj_ioqueue_set_default_concurrency(ioque, allow_concur); -
pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
r5170 r5953 209 209 pj_create_random_string(send_buf, bufsize); 210 210 211 // Init operation keys. 212 pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 213 pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 214 211 215 // Register reading from ioqueue. 212 216 TRACE_("start recvfrom..."); … … 714 718 } 715 719 bytes = bufsize; 720 pj_ioqueue_op_key_init(&inactive_read_op[i], 721 sizeof(inactive_read_op[i])); 716 722 rc = pj_ioqueue_recv(keys[i], &inactive_read_op[i], recv_buf, &bytes, 0); 717 723 if (rc != PJ_EPENDING) { … … 751 757 // Randomize send buffer. 752 758 pj_create_random_string(send_buf, bufsize); 759 760 // Init operation keys. 761 pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 762 pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 753 763 754 764 // Start reading on the server side.
Note: See TracChangeset
for help on using the changeset viewer.