diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-11-21 14:12:01 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-11-21 14:12:01 +0000 |
commit | 5931dc59c08af2cf1f23518f700e9107effa9e59 (patch) | |
tree | 82f144feae2c2eb35b1f65f9edc156365152e347 /pjlib/include/pj/os.h | |
parent | 7cea28ab2a2d6dadb0ef3aaa6a3194e45f98cba5 (diff) |
Ticket #417: added pjlib API to retrieve the native thread handle from pj_thread_t
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1589 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/os.h')
-rw-r--r-- | pjlib/include/pj/os.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h index 3529c463..f640df21 100644 --- a/pjlib/include/pj/os.h +++ b/pjlib/include/pj/os.h @@ -138,6 +138,19 @@ PJ_DECL(pj_bool_t) pj_thread_is_registered(void); /** + * Return native handle from pj_thread_t for manipulation using native + * OS APIs. + * + * @param thread PJLIB thread descriptor. + * + * @return Native thread handle. For example, when the + * backend thread uses pthread, this function will + * return pointer to pthread_t, and on Windows, + * this function will return HANDLE. + */ +PJ_DECL(void*) pj_thread_get_os_handle(pj_thread_t *thread); + +/** * Get thread name. * * @param thread The thread handle. |