diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-25 11:39:39 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-25 11:39:39 +0000 |
commit | ceb65e0697baa29388e1ad4a9b561a99df3e005e (patch) | |
tree | b3a9e2fe7811b1448ee13f0d97158c23dff08195 /pjlib/src/pj/os_core_unix.c | |
parent | 3e658249f974a35985bcff9d86b73bdc15fe2dc8 (diff) |
Fixed ticket #300: Assertion error or handle leak when creating thread with SUSPENDED state
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1304 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_core_unix.c')
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 33a8a856..3e46df52 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -356,8 +356,10 @@ static void *thread_main(void *param) } /* Check if suspension is required. */ - if (rec->suspended_mutex) + if (rec->suspended_mutex) { pj_mutex_lock(rec->suspended_mutex); + pj_mutex_unlock(rec->suspended_mutex); + } PJ_LOG(6,(rec->obj_name, "Thread started")); |