Re: [asterisk-dev] Proper use of locking.

2007-07-18 Thread Russell Bryant
Kevin P. Fleming wrote: > Asterisk has always required and used recursive (reentrant is not the > right word) mutex locks (and now rwlocks, in trunk). All the code in > Asterisk that uses locks depends on this behavior and would break badly > if the mutexes were not recursive. This is documented in

Re: [asterisk-dev] Proper use of locking.

2007-07-18 Thread Kevin P. Fleming
Michael Cargile wrote: > 3. Last we checked Asterisk locks were non-reentrant, meaning a single > thread cannot lock on the same lock twice. This is a problem that seems > to be currently being worked on but I am not aware if it has been fixed > as of yet. This means we need to be careful when loc

[asterisk-dev] Proper use of locking.

2007-07-18 Thread Michael Cargile
For a while now I have been trying to hunt down the reason why the processor load on our Vicidial systems spikes frequently. It normally stays at around 2 on a 4 core server. It can however jump up as high as 45 which is not good for call quality. Upon investigation I figured out that it is the