Ignore:
Timestamp:
Nov 29, 2019 4:21:17 AM (4 years ago)
Author:
ming
Message:

Fixed #2251: Deadlock between PJSUA LOCK and conference mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/port.h

    r3893 r6112  
    188188 
    189189 
     190/* Since media port's callback is called synchronously and has a return value, 
     191 * it can introduce a deadlock when a mutex is held before calling it. 
     192 * To prevent this, media ports' set_eof_cb() and set_cb() functions have 
     193 * been deprecated and replaced by set_eof_cb2() and set_cb2(), which 
     194 * will call the callback asynchronously without expecting any return value. 
     195 * 
     196 * See also https://trac.pjsip.org/repos/ticket/2251. 
     197 */ 
     198#ifndef DEPRECATED_FOR_TICKET_2251 
     199#  define DEPRECATED_FOR_TICKET_2251    0 
     200#endif 
     201 
     202 
    190203/** 
    191204 * Create 32bit port signature from ASCII characters. 
Note: See TracChangeset for help on using the changeset viewer.