From a5f8e7c270ac8c919dafe6c2fd0663ee6ce47fc4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 6 Nov 2005 17:47:14 +0000 Subject: Disable validate_set as it's not valid anymore git-svn-id: http://svn.pjsip.org/repos/pjproject/main@16 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/ioqueue_select.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pjlib') diff --git a/pjlib/src/pj/ioqueue_select.c b/pjlib/src/pj/ioqueue_select.c index c2051681..886c3cda 100644 --- a/pjlib/src/pj/ioqueue_select.c +++ b/pjlib/src/pj/ioqueue_select.c @@ -66,12 +66,15 @@ PJ_DECL(pj_size_t) PJ_FD_COUNT(const pj_fd_set_t *fdsetp); /* * During debugging build, VALIDATE_FD_SET is set. * This will check the validity of the fd_sets. - */ + */ +/* #if defined(PJ_DEBUG) && PJ_DEBUG != 0 # define VALIDATE_FD_SET 1 #else # define VALIDATE_FD_SET 0 #endif +*/ +#define VALIDATE_FD_SET 0 /* * This describes each key. @@ -270,6 +273,14 @@ static void validate_sets(const pj_ioqueue_t *ioqueue, const pj_fd_set_t *xfdset) { pj_ioqueue_key_t *key; + + /* + * This basicly would not work anymore. + * We need to lock key before performing the check, but we can't do + * so because we're holding ioqueue mutex. If we acquire key's mutex + * now, the will cause deadlock. + */ + pj_assert(0); key = ioqueue->key_list.next; while (key != &ioqueue->key_list) { -- cgit v1.2.3