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

Re: [reSIProcate-users] Threading model


The StackThread gives cycles to the stack, which causes messages to be put in a fifo. SipStack::receive() pulls messages out of that fifo.

Best regards,
Byron Campen

Ive got a snippet of example code from the web:

        SipStack stack;
        StackThread stackThread(stack);
        stackThread.run();


        while (1)
        {
                SipMessage* msg = stack.receive();
                .....
        }


Im confused as to which thread is which here. Has it created a thread which runs the stack in the background plus my main thread which executes the while loop?

Andrew

Recommends you try OpenOffice.org - I'm
Microsoft free, you too can be.

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/

Attachment: smime.p7s
Description: S/MIME cryptographic signature