< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] write Application data to DUM Fifo??


The post() fn is thread safe so you don't need mutexing.

> -----Original Message-----
> From: Benjamin Jacob [mailto:benjamin.jacob@xxxxxxxxxxxx]
> Sent: Thursday, August 24, 2006 11:48 PM
> To: Scott Godin
> Cc: 'Resiprocate'
> Subject: Re: [reSIProcate] write Application data to DUM Fifo??
> 
> Thanks Scott, that does solve a few things for me.
> A thought, I am guessing, that this cant be done in another thread, in
> a thread-safe manner, i.e. If i have an application thread, which has
> got a reference of the DUM object, it cant blindly do a post on the
msg
> to be sent; it would have to mutex on DUM??
> So, all of this has to be done serialy. DUM and application would have
> to be one thread?
> 
> Thanks again.
> Ben.
> 
> 
> 
> 
> Scott Godin wrote:
> 
> >You can subclass DumCommand and use DialogUsageMaanger::post to queue
> >the message.  The executeCommand method will be called on your
object,
> >when dum processes this message.
> >
> >Scott
> >
> >-----Original Message-----
> >From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
> >[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> >Benjamin Jacob
> >Sent: Thursday, August 24, 2006 3:03 AM
> >To: Resiprocate
> >Subject: [reSIProcate] write Application data to DUM Fifo??
> >
> >Hello everyone,
> >Is it possible to write Application specific msgs into a DUM Fifo?
> >I have got a strong urge, that it is possible, but dont know
> >how?(TransactionUserMessage, etc.????)
> >
> >The idea is an application somewhere writes data to a
UserDefinedFifo,
> >a reader thread picks up this thread, converts this data to a msg
type
> >understood by DUM and puts it onto DUM's fifo.
> >So, wot is this msg type, and also how do I push this msg onto DUM's
> >fifo, from this reader thread??
> >Any ideas?
> >
> >Another question bugging me since days, is it possible to have have
> >different DUM threads(e.g. one for UAS and another for UAC), and only
> >one stack listening on 5060??
> >
> >Cheerz,
> >Ben.
> >_______________________________________________
> >resiprocate-devel mailing list
> >resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> >https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> >
> >
> >