Ignore:
Timestamp:
Aug 13, 2014 9:14:53 AM (10 years ago)
Author:
nanang
Message:

Close #1779: Add APIs for external/native thread registration to pjsua2: Endpoint::libRegisterThread() & Endpoint::libIsThreadRegistered().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r4861 r4887  
    700700} 
    701701 
    702 PJ_DEF(pj_status_t) pjsua_register_worker_thread(const char *name) 
    703 { 
    704     pj_thread_desc desc; 
    705     pj_thread_t *thread; 
    706     pj_status_t status; 
    707  
    708     if (pjsua_var.thread_quit_flag) 
    709         return PJ_EGONE; 
    710  
    711     status = pj_thread_register(NULL, desc, &thread); 
    712     if (status != PJ_SUCCESS) 
    713         return status; 
    714  
    715     if (name) 
    716         PJ_LOG(4,(THIS_FILE, "Worker thread %s started", name)); 
    717  
    718     worker_thread(NULL); 
    719  
    720     if (name) 
    721         PJ_LOG(4,(THIS_FILE, "Worker thread %s stopped", name)); 
    722  
    723     return PJ_SUCCESS; 
    724 } 
    725702 
    726703PJ_DEF(void) pjsua_stop_worker_threads(void) 
Note: See TracChangeset for help on using the changeset viewer.