Changeset 1235 for pjproject/trunk/pjlib/src/pjlib-test/ioq_perf.c
- Timestamp:
- Apr 30, 2007 9:03:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ioq_perf.c
r974 r1235 73 73 pj_ssize_t bytes_read) 74 74 { 75 test_item *item = pj_ioqueue_get_user_data(key);75 test_item *item = (test_item*)pj_ioqueue_get_user_data(key); 76 76 pj_status_t rc; 77 77 int data_is_available = 1; … … 151 151 pj_ssize_t bytes_sent) 152 152 { 153 test_item *item = pj_ioqueue_get_user_data(key);153 test_item *item = (test_item*) pj_ioqueue_get_user_data(key); 154 154 155 155 //TRACE_((THIS_FILE, " write complete: sent = %d", bytes_sent)); … … 189 189 static int worker_thread(void *p) 190 190 { 191 struct thread_arg *arg = p;191 struct thread_arg *arg = (struct thread_arg*) p; 192 192 const pj_time_val timeout = {0, 100}; 193 193 int rc; … … 250 250 return -10; 251 251 252 items = pj_pool_alloc(pool, sockpair_cnt*sizeof(test_item)); 253 thread = pj_pool_alloc(pool, thread_cnt*sizeof(pj_thread_t*)); 252 items = (test_item*) pj_pool_alloc(pool, sockpair_cnt*sizeof(test_item)); 253 thread = (pj_thread_t**) 254 pj_pool_alloc(pool, thread_cnt*sizeof(pj_thread_t*)); 254 255 255 256 TRACE_((THIS_FILE, " creating ioqueue..")); … … 266 267 items[i].ioqueue = ioqueue; 267 268 items[i].buffer_size = buffer_size; 268 items[i].outgoing_buffer = pj_pool_alloc(pool, buffer_size);269 items[i].incoming_buffer = pj_pool_alloc(pool, buffer_size);269 items[i].outgoing_buffer = (char*) pj_pool_alloc(pool, buffer_size); 270 items[i].incoming_buffer = (char*) pj_pool_alloc(pool, buffer_size); 270 271 items[i].bytes_recv = items[i].bytes_sent = 0; 271 272 … … 332 333 struct thread_arg *arg; 333 334 334 arg = pj_pool_zalloc(pool, sizeof(*arg));335 arg = (thread_arg*) pj_pool_zalloc(pool, sizeof(*arg)); 335 336 arg->id = i; 336 337 arg->ioqueue = ioqueue;
Note: See TracChangeset
for help on using the changeset viewer.