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/pjlib/src/pj/os_core_unix.c

    r1567 r1589  
    239239} 
    240240 
     241/* 
     242 * Get native thread handle 
     243 */ 
     244PJ_DEF(void*) pj_thread_get_os_handle(pj_thread_t *thread)  
     245{ 
     246    PJ_ASSERT_RETURN(thread, NULL); 
     247 
     248#if PJ_HAS_THREADS 
     249    return &thread->thread; 
     250#else 
     251    pj_assert("pj_thread_is_registered() called in non-threading mode!"); 
     252    return NULL; 
     253#endif 
     254} 
    241255 
    242256/* 
Note: See TracChangeset for help on using the changeset viewer.