diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-06-22 19:18:55 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-06-22 19:18:55 +0000 |
commit | 331c69cbc1ff8ddfb5618f6bfd88f6e542f7bb3d (patch) | |
tree | 9b07cb4af3bd4c30c030809f6d4276027cb36be6 /pjlib/src/pjlib-test | |
parent | 5949095a757f1ee521cd158d917b51f5d758e94e (diff) |
Ticket #891: fixed deadlock on pjlib-test ioqueue unregister stress test. This seems to have fixed the Bus error too
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2782 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test')
-rw-r--r-- | pjlib/src/pjlib-test/ioq_unreg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/ioq_unreg.c b/pjlib/src/pjlib-test/ioq_unreg.c index ab47c794..5b320964 100644 --- a/pjlib/src/pjlib-test/ioq_unreg.c +++ b/pjlib/src/pjlib-test/ioq_unreg.c @@ -250,11 +250,12 @@ static int perform_unreg_test(pj_ioqueue_t *ioqueue, PJ_TIME_VAL_GTE(now, time_to_unregister) && sock_data.pool) { - pj_mutex_lock(sock_data.mutex); + //Can't do this otherwise it'll deadlock + //pj_mutex_lock(sock_data.mutex); sock_data.unregistered = 1; pj_ioqueue_unregister(sock_data.key); - pj_mutex_unlock(sock_data.mutex); + //pj_mutex_unlock(sock_data.mutex); pj_mutex_destroy(sock_data.mutex); pj_pool_release(sock_data.pool); sock_data.pool = NULL; |