summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-06-22 19:18:55 +0000
committerBenny Prijono <bennylp@teluu.com>2009-06-22 19:18:55 +0000
commit331c69cbc1ff8ddfb5618f6bfd88f6e542f7bb3d (patch)
tree9b07cb4af3bd4c30c030809f6d4276027cb36be6
parent5949095a757f1ee521cd158d917b51f5d758e94e (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
-rw-r--r--pjlib/src/pjlib-test/ioq_unreg.c5
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;