Changeset 2375 for pjproject


Ignore:
Timestamp:
Dec 11, 2008 11:18:33 AM (16 years ago)
Author:
bennylp
Message:

Ticket #682: New API to register (external) Python thread (thanks Johan Risberg for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/pjsua.py

    r2374 r2375  
    21382138        return _pjsua.handle_events(timeout) 
    21392139 
     2140    def thread_register(self, name): 
     2141        """Register external threads (threads that are not created by PJSIP, 
     2142        such as threads that are created by Python API) to PJSIP. 
     2143 
     2144        The call must be made from the new thread before calling any pjlib  
     2145        functions. 
     2146 
     2147        Keyword arguments: 
     2148        name    -- Non descriptive name for the thread 
     2149        """ 
     2150        dummy = 1 
     2151        err = _pjsua.thread_register(name, dummy) 
     2152        self._err_check("thread_register()", self, err) 
     2153 
    21402154    def verify_sip_url(self, sip_url): 
    21412155        """Verify that the specified string is a valid URI.  
     
    27332747            buddy._cb.on_state() 
    27342748 
    2735  
    2736  
    2737  
    27382749# 
    27392750# Internal 
Note: See TracChangeset for help on using the changeset viewer.