Ignore:
Timestamp:
Nov 21, 2007 2:12:01 PM (17 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/pjlib/include/pj/os.h

    r1525 r1589  
    137137PJ_DECL(pj_bool_t) pj_thread_is_registered(void); 
    138138 
     139 
     140/** 
     141 * Return native handle from pj_thread_t for manipulation using native 
     142 * OS APIs. 
     143 * 
     144 * @param thread        PJLIB thread descriptor. 
     145 * 
     146 * @return              Native thread handle. For example, when the 
     147 *                      backend thread uses pthread, this function will 
     148 *                      return pointer to pthread_t, and on Windows, 
     149 *                      this function will return HANDLE. 
     150 */ 
     151PJ_DECL(void*) pj_thread_get_os_handle(pj_thread_t *thread); 
    139152 
    140153/** 
Note: See TracChangeset for help on using the changeset viewer.