I see that sip_new() assumes the pvt lock is already locked, unlocks it temporarily while it allocates an ast_channel, and leaves it locked. How does that work, i.e., where is the lock going to eventually get released?

Or does it do that "just in case", and relasing an already-released lock followed by a lock actually leaves the mutex unlocked? (I don't know if mutexes actually work like that)

Juan
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to