Fixed ticket #162: assertion on thread creation in Win32 when log level 6 is enabled

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1046 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-03-06 23:35:54 +00:00
parent 4e5d551edb
commit 2360489df9
1 changed files with 2 additions and 2 deletions

View File

@ -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"));