Ignore:
Timestamp:
Apr 15, 2019 10:52:16 AM (6 years ago)
Author:
nanang
Message:

Close #2189: fixed PJSUA2 thread safety issue in list of objects manipulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/call.hpp

    r5923 r5969  
    312312     * Default constructor initializes with empty or default values. 
    313313     */ 
    314     CallSetting(pj_bool_t useDefaultValues = false); 
     314    CallSetting(bool useDefaultValues = false); 
    315315 
    316316    /** 
     
    10101010     * which are going to be used. 
    10111011     */ 
    1012     vector<SrtpCrypto>          cryptos; 
     1012    SrtpCryptoVector            cryptos; 
    10131013}; 
    10141014 
     
    12361236     
    12371237    /** 
     1238     * Warning: deprecated, use getAudioMedia() instead. This function is not 
     1239     * safe in multithreaded environment. 
     1240     * 
    12381241     * Get media for the specified media index. 
    12391242     * 
     
    12431246     */ 
    12441247    Media *getMedia(unsigned med_idx) const; 
     1248 
     1249    /** 
     1250     * Get audio media for the specified media index. If the specified media 
     1251     * index is not audio or invalid or inactive, exception will be thrown. 
     1252     * 
     1253     * @param med_idx       Media index. 
     1254     * 
     1255     * @return              The audio media. 
     1256     */ 
     1257    AudioMedia getAudioMedia(unsigned med_idx) const throw(Error); 
    12451258 
    12461259    /** 
Note: See TracChangeset for help on using the changeset viewer.