- Timestamp:
- Aug 11, 2006 12:42:50 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build
- Property svn:ignore
-
old new 2 2 *.opt 3 3 .pjmedia* 4 .pjsdp* 4 5 *.plg 5 6 *.vcproj*
-
- Property svn:ignore
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r671 r673 690 690 PJ_DEF(void) pjsip_dlg_inc_lock(pjsip_dialog *dlg) 691 691 { 692 PJ_LOG(6,(dlg->obj_name, "Entering pjsip_dlg_inc_lock(), sess_count=%d", 693 dlg->sess_count)); 694 692 695 pjsip_ua_lock_dlg_table(); 693 696 … … 695 698 dlg->sess_count++; 696 699 697 pjsip_ua_unlock_dlg_table(); 700 //pjsip_ua_unlock_dlg_table(); 701 702 PJ_LOG(6,(dlg->obj_name, "Leaving pjsip_dlg_inc_lock(), sess_count=%d", 703 dlg->sess_count)); 698 704 } 699 705 … … 705 711 PJ_DEF(void) pjsip_dlg_dec_lock(pjsip_dialog *dlg) 706 712 { 707 pjsip_ua_lock_dlg_table(); 713 PJ_LOG(6,(dlg->obj_name, "Entering pjsip_dlg_dec_lock(), sess_count=%d", 714 dlg->sess_count)); 715 716 //pjsip_ua_lock_dlg_table(); 708 717 709 718 pj_assert(dlg->sess_count > 0); … … 719 728 720 729 pjsip_ua_unlock_dlg_table(); 730 731 PJ_LOG(6,(THIS_FILE, "Leaving pjsip_dlg_dec_lock() (dlg=%p)", dlg)); 721 732 } 722 733 -
pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c
r671 r673 587 587 588 588 /* Lock the dialog */ 589 PJ_LOG(6,(dlg->obj_name, "UA layer acquiring dialog lock for request")); 589 590 pjsip_dlg_inc_lock(dlg); 591 592 /* Pass to dialog. */ 593 pjsip_dlg_on_rx_request(dlg, rdata); 594 595 /* Unlock the dialog. This may destroy the dialog */ 596 pjsip_dlg_dec_lock(dlg); 590 597 591 598 /* Done processing in the UA */ 592 599 pj_mutex_unlock(mod_ua.mutex); 593 594 /* Pass to dialog. */595 pjsip_dlg_on_rx_request(dlg, rdata);596 597 /* Unlock the dialog. This may destroy the dialog */598 pjsip_dlg_dec_lock(dlg);599 600 600 601 /* Report as handled. */ … … 783 784 784 785 /* Acquire lock to the dialog. */ 786 PJ_LOG(6,(dlg->obj_name, "UA layer acquiring dialog lock for response")); 785 787 pjsip_dlg_inc_lock(dlg); 788 789 /* Pass the response to the dialog. */ 790 pjsip_dlg_on_rx_response(dlg, rdata); 791 792 /* Unlock the dialog. This may destroy the dialog. */ 793 pjsip_dlg_dec_lock(dlg); 786 794 787 795 /* Unlock dialog hash table. */ 788 796 pj_mutex_unlock(mod_ua.mutex); 789 790 /* Pass the response to the dialog. */791 pjsip_dlg_on_rx_response(dlg, rdata);792 793 /* Unlock the dialog. This may destroy the dialog. */794 pjsip_dlg_dec_lock(dlg);795 797 796 798 /* Done. */
Note: See TracChangeset
for help on using the changeset viewer.