You have a debug core trace? Can't help you without one.

Yes, locks are necessary for each query because the mysql connection is
shared amoungst all realtime queries. The thread must have control of the
resource when it does its thing otherwise unknown stuff would happen.

-Matthew


> From: fcbouan <[EMAIL PROTECTED]>
> Reply-To: Asterisk Developers Mailing List <[email protected]>
> Date: Fri, 13 May 2005 15:05:44 +0200
> To: <[email protected]>
> Subject: [Asterisk-Dev] deadlock with realtime
> 
> hi,
> i work on last asterisk CVS version. i use a custom module based on
> cdr_addon_mysql.c.
> 
> On last CVS version and realtime, asterisk got deadlock with ast_mutex_lock
> used for mysql query. is there some asterisk lock/unlock change on recent CVS
> upgrade or Realtime ? i check realtime source there nothing special.
> 
> I remove all lock/unlock in my file but i got deadlock. Is mutex_lock must be
> used  with mysql (INSERT, SELECT) ?
>  
> _______________________________________________
> Asterisk-Dev mailing list
> [email protected]
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev


_______________________________________________
Asterisk-Dev mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to