diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-06 23:32:25 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-06 23:32:25 +0000 |
commit | 174c9845b65db535c3dc8d40f683f39328c95e03 (patch) | |
tree | 59f49c2c91be99bdd9eca7ad85b8c51b2d3aa140 | |
parent | 70ccea7045b392390bdd902c960b6fa1775a4d2b (diff) |
Fixed ticket #161: assertion on thread creation in Win32 with log level 6 enabled
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1045 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjlib/src/pj/os_core_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pj/os_core_win32.c b/pjlib/src/pj/os_core_win32.c index 5c8d93b5..4e5ee0e2 100644 --- a/pjlib/src/pj/os_core_win32.c +++ b/pjlib/src/pj/os_core_win32.c @@ -324,12 +324,12 @@ static DWORD WINAPI thread_main(void *param) rec->stk_start = (char*)&rec; #endif - PJ_LOG(6,(rec->obj_name, "Thread started")); - if (pj_thread_local_set(thread_tls_id, rec) != PJ_SUCCESS) { pj_assert(!"TLS is not set (pj_init() error?)"); } + PJ_LOG(6,(rec->obj_name, "Thread started")); + result = (*rec->proc)(rec->arg); PJ_LOG(6,(rec->obj_name, "Thread quitting")); |