Ignore:
Timestamp:
Feb 21, 2013 11:26:35 AM (7 years ago)
Author:
bennylp
Message:

Fixed #1617: major synchronization fixes in PJNATH with incorporation of group lock to avoid deadlock and crashes due to race conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/stun_transaction.h

    r4352 r4360  
    2828#include <pjnath/stun_msg.h> 
    2929#include <pjnath/stun_config.h> 
     30#include <pj/lock.h> 
    3031 
    3132 
     
    125126 *                      various settings for the transaction. 
    126127 * @param pool          Pool to be used to allocate memory from. 
     128 * @param grp_lock      Group lock to synchronize. 
    127129 * @param cb            Callback structure, to be used by the transaction 
    128130 *                      to send message and to notify the application about 
     
    134136PJ_DECL(pj_status_t) pj_stun_client_tsx_create( pj_stun_config *cfg, 
    135137                                                pj_pool_t *pool, 
     138                                                pj_grp_lock_t *grp_lock, 
    136139                                                const pj_stun_tsx_cb *cb, 
    137140                                                pj_stun_client_tsx **p_tsx); 
     
    160163 
    161164/** 
    162  * Destroy a STUN client transaction immediately. This function can be  
    163  * called at any time to stop the transaction and destroy it. 
     165 * Stop the client transaction. 
    164166 * 
    165167 * @param tsx           The STUN transaction. 
     
    168170 *                      is NULL. 
    169171 */ 
    170 PJ_DECL(pj_status_t) pj_stun_client_tsx_destroy(pj_stun_client_tsx *tsx); 
     172PJ_DECL(pj_status_t) pj_stun_client_tsx_stop(pj_stun_client_tsx *tsx); 
    171173 
    172174 
Note: See TracChangeset for help on using the changeset viewer.