Ignore:
Timestamp:
Jan 29, 2020 4:05:51 AM (4 years ago)
Author:
ming
Message:

Fixed #2264: Potential deadlock between pjsua lock and sip transport's lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_regc.h

    r6035 r6142  
    210210                                     pj_uint32_t expires); 
    211211 
     212 
     213/** 
     214 * Increment busy counter temporarily, to prevent client registration 
     215 * structure from being destroyed. 
     216 * 
     217 * @param regc      The client registration structure. 
     218 */ 
     219PJ_DECL(void) pjsip_regc_add_ref( pjsip_regc *regc ); 
     220 
     221 
     222/** 
     223 * Decrement temporary busy counter. After this function 
     224 * is called, client registration structure may have been destroyed 
     225 * if there's a pending destroy. 
     226 * 
     227 * @param regc      The client registration structure. 
     228 * 
     229 * @return          PJ_SUCCESS on success. PJ_EGONE if the registration 
     230 *                  structure has been destroyed inside the function. 
     231 */ 
     232PJ_DECL(pj_status_t) pjsip_regc_dec_ref( pjsip_regc *regc ); 
     233 
     234 
    212235/** 
    213236 * Set callback to be called when the registration received a final response. 
Note: See TracChangeset for help on using the changeset viewer.