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/account.hpp

    r5820 r5969  
    16491649     * and delete the corresponding account in the PJSUA-LIB. 
    16501650     * 
     1651     * Note that application must delete all Buddy instances belong to this 
     1652     * account before shutting down the account. 
     1653     * 
    16511654     * If application implements a derived class, the derived class should 
    16521655     * call this method in the beginning stage in its destructor, or 
     
    17601763     
    17611764    /** 
     1765     * Warning: deprecated, use enumBuddies2() instead. This function is not 
     1766     * safe in multithreaded environment. 
     1767     * 
    17621768     * Enumerate all buddies of the account. 
    17631769     * 
     
    17671773 
    17681774    /** 
     1775     * Enumerate all buddies of the account. 
     1776     * 
     1777     * @return                  The buddy list. 
     1778     */ 
     1779    BuddyVector2 enumBuddies2() const throw(Error); 
     1780 
     1781    /** 
     1782     * Warning: deprecated, use findBuddy2 instead. This function is not 
     1783     * safe in multithreaded environment. 
     1784     * 
    17691785     * Find a buddy in the buddy list with the specified URI.  
    17701786     * 
     
    17781794    Buddy* findBuddy(string uri, FindBuddyMatch *buddy_match = NULL) const 
    17791795                    throw(Error); 
     1796 
     1797    /** 
     1798     * Find a buddy in the buddy list with the specified URI.  
     1799     * 
     1800     * Exception: if buddy is not found, PJ_ENOTFOUND will be thrown. 
     1801     * 
     1802     * @param uri               The buddy URI. 
     1803     * 
     1804     * @return                  The pointer to buddy. 
     1805     */ 
     1806    Buddy findBuddy2(string uri) const throw(Error); 
    17801807 
    17811808public: 
Note: See TracChangeset for help on using the changeset viewer.