Opened 16 years ago
Last modified 16 years ago
#418 closed defect
Protect client registration session (regc) with mutex — at Initial Version
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | major | Milestone: | release-0.9.0 |
Component: | pjsip | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
The original idea of not using mutex in regc was because operations should be serialized by 8-bit boolean flags, and (I heard) operation to 8-bit variables should be atomic. But it seems that with recent modifications/bug fixes in regc, this rule may not hold anymore (such as the timer, which I think was added only quite recently).
So I guess adding a mutex will not hurt, and it even should add robustness to the code.
Note: See
TracTickets for help on using
tickets.