Changeset 592 for pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
- Timestamp:
- Jul 8, 2006 7:46:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r582 r592 197 197 h->connecting = 0; 198 198 199 ioqueue_remove_from_set(ioqueue, h ->fd, WRITEABLE_EVENT);200 ioqueue_remove_from_set(ioqueue, h ->fd, EXCEPTION_EVENT);199 ioqueue_remove_from_set(ioqueue, h, WRITEABLE_EVENT); 200 ioqueue_remove_from_set(ioqueue, h, EXCEPTION_EVENT); 201 201 202 202 … … 273 273 274 274 if (pj_list_empty(&h->write_list)) 275 ioqueue_remove_from_set(ioqueue, h ->fd, WRITEABLE_EVENT);275 ioqueue_remove_from_set(ioqueue, h, WRITEABLE_EVENT); 276 276 277 277 } … … 326 326 /* Clear operation if there's no more data to send. */ 327 327 if (pj_list_empty(&h->write_list)) 328 ioqueue_remove_from_set(ioqueue, h ->fd, WRITEABLE_EVENT);328 ioqueue_remove_from_set(ioqueue, h, WRITEABLE_EVENT); 329 329 330 330 } … … 379 379 /* Clear bit in fdset if there is no more pending accept */ 380 380 if (pj_list_empty(&h->accept_list)) 381 ioqueue_remove_from_set(ioqueue, h ->fd, READABLE_EVENT);381 ioqueue_remove_from_set(ioqueue, h, READABLE_EVENT); 382 382 383 383 rc=pj_sock_accept(h->fd, accept_op->accept_fd, … … 412 412 /* Clear fdset if there is no pending read. */ 413 413 if (pj_list_empty(&h->read_list)) 414 ioqueue_remove_from_set(ioqueue, h ->fd, READABLE_EVENT);414 ioqueue_remove_from_set(ioqueue, h, READABLE_EVENT); 415 415 416 416 bytes_read = read_op->size; … … 519 519 h->connecting = 0; 520 520 521 ioqueue_remove_from_set(ioqueue, h ->fd, WRITEABLE_EVENT);522 ioqueue_remove_from_set(ioqueue, h ->fd, EXCEPTION_EVENT);521 ioqueue_remove_from_set(ioqueue, h, WRITEABLE_EVENT); 522 ioqueue_remove_from_set(ioqueue, h, EXCEPTION_EVENT); 523 523 524 524 pj_mutex_unlock(h->mutex); … … 586 586 pj_mutex_lock(key->mutex); 587 587 pj_list_insert_before(&key->read_list, read_op); 588 ioqueue_add_to_set(key->ioqueue, key ->fd, READABLE_EVENT);588 ioqueue_add_to_set(key->ioqueue, key, READABLE_EVENT); 589 589 pj_mutex_unlock(key->mutex); 590 590 … … 654 654 pj_mutex_lock(key->mutex); 655 655 pj_list_insert_before(&key->read_list, read_op); 656 ioqueue_add_to_set(key->ioqueue, key ->fd, READABLE_EVENT);656 ioqueue_add_to_set(key->ioqueue, key, READABLE_EVENT); 657 657 pj_mutex_unlock(key->mutex); 658 658 … … 760 760 pj_mutex_lock(key->mutex); 761 761 pj_list_insert_before(&key->write_list, write_op); 762 ioqueue_add_to_set(key->ioqueue, key ->fd, WRITEABLE_EVENT);762 ioqueue_add_to_set(key->ioqueue, key, WRITEABLE_EVENT); 763 763 pj_mutex_unlock(key->mutex); 764 764 … … 828 828 status = status; 829 829 } 830 PJ_LOG(3,(THIS_FILE, "pending write operation!!")); 830 831 } 831 832 … … 877 878 pj_mutex_lock(key->mutex); 878 879 pj_list_insert_before(&key->write_list, write_op); 879 ioqueue_add_to_set(key->ioqueue, key ->fd, WRITEABLE_EVENT);880 ioqueue_add_to_set(key->ioqueue, key, WRITEABLE_EVENT); 880 881 pj_mutex_unlock(key->mutex); 881 882 … … 946 947 pj_mutex_lock(key->mutex); 947 948 pj_list_insert_before(&key->accept_list, accept_op); 948 ioqueue_add_to_set(key->ioqueue, key ->fd, READABLE_EVENT);949 ioqueue_add_to_set(key->ioqueue, key, READABLE_EVENT); 949 950 pj_mutex_unlock(key->mutex); 950 951 … … 982 983 pj_mutex_lock(key->mutex); 983 984 key->connecting = PJ_TRUE; 984 ioqueue_add_to_set(key->ioqueue, key ->fd, WRITEABLE_EVENT);985 ioqueue_add_to_set(key->ioqueue, key ->fd, EXCEPTION_EVENT);985 ioqueue_add_to_set(key->ioqueue, key, WRITEABLE_EVENT); 986 ioqueue_add_to_set(key->ioqueue, key, EXCEPTION_EVENT); 986 987 pj_mutex_unlock(key->mutex); 987 988 return PJ_EPENDING;
Note: See TracChangeset
for help on using the changeset viewer.