Ignore:
Timestamp:
Nov 21, 2007 2:12:01 PM (15 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/src/pj/os_core_win32.c

    r1567 r1589  
    246246 
    247247/* 
     248 * Get native thread handle 
     249 */ 
     250PJ_DEF(void*) pj_thread_get_os_handle(pj_thread_t *thread)  
     251{ 
     252    PJ_ASSERT_RETURN(thread, NULL); 
     253 
     254#if PJ_HAS_THREADS 
     255    return thread->hthread; 
     256#else 
     257    pj_assert("pj_thread_is_registered() called in non-threading mode!"); 
     258    return NULL; 
     259#endif 
     260} 
     261 
     262/* 
    248263 * pj_thread_register(..) 
    249264 */ 
Note: See TracChangeset for help on using the changeset viewer.