Ignore:
Timestamp:
Nov 21, 2007 2:12:01 PM (16 years ago)
Author:
bennylp
Message:

Ticket #417: added pjlib API to retrieve the native thread handle from pj_thread_t

File:
1 edited

Legend:

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

    r974 r1589  
    8888 
    8989/** 
     90 * Get the number of worker threads on the media endpoint 
     91 * 
     92 * @param endpt         The media endpoint instance. 
     93 * @return              The number of worker threads on the media endpoint 
     94 */ 
     95PJ_DECL(unsigned) pjmedia_endpt_get_thread_count(pjmedia_endpt *endpt); 
     96 
     97/** 
     98 * Get a reference to one of the worker threads of the media endpoint  
     99 * 
     100 * @param endpt         The media endpoint instance. 
     101 * @param index         The index of the thread: 0<= index < thread_cnt 
     102 * 
     103 * @return              pj_thread_t or NULL 
     104 */ 
     105PJ_DECL(pj_thread_t*) pjmedia_endpt_get_thread(pjmedia_endpt *endpt,  
     106                                               unsigned index); 
     107 
     108 
     109/** 
    90110 * Request the media endpoint to create pool. 
    91111 * 
Note: See TracChangeset for help on using the changeset viewer.