[reSIProcate] DUM and Thread Safety
Scott Godin
slgodin at icescape.com
Wed Jul 14 16:15:28 CDT 2004
Derek,
Has there been much though put into thread safety aspects of the DUM?
I don't use the stack in Multi-threaded mode - but I am using 1 thread to
run the select/process loop and other threads (ie. One per SIP/RTP port)
that can call the send/end/makexxx methods of the various Session objects
(just Invite session for now). I am concerned that some of these calls,
could end up deleting memory that may be in use by the main process loop.
For example: What if I call send on ClientInviteSession to send a CANCEL
message - this deletes the ClientInviteSession object itself (ie. delete
this). But what if the main thread is processing an inbound message
destined for the ClientInviteSession at the same time and is accessing the
session object?
What assumptions are made by the DUM as far as threading is concerned? What
is the final goal as far as threading is concerned?
Thanks,
Scott Godin
Research and Development
Computer Talk Technology
slgodin at icescape.com
905-882-5000 and 'Say my name' or x127
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20040714/1c80a4cc/attachment.htm>
More information about the resiprocate-devel
mailing list