[Asterisk-Dev] Re: small patch for better readability in chan_zap.c

Florian Zumbiehl florz at gmx.de
Sat Oct 23 07:02:11 MST 2004


Hi,

I should have mentioned that this is untested! Which also explains
the missing { ... =:-)

> +		while(ast_mutex_trylock(&p->owner->lock))
                                                         ^
> +			ast_mutex_unlock(&p->lock);
> +			usleep(1);
> +			ast_mutex_lock(&p->lock);
> +		}

Cya, Florian



More information about the asterisk-dev mailing list