I noticed that mg_websocket_write contains a comment that it's not thread safe. (Line 4195). What does this mean exactly? Does this mean that multiple threads cannot write to the same connection at the same time? Or does it mean that only one thread can write at any time, even if they are to different connections?
--Thanks,Jonathan
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.
On Tue, Sep 24, 2013 at 5:46 PM, Jonathan Berling <jonbe...@gmail.com> wrote:
I noticed that mg_websocket_write contains a comment that it's not thread safe. (Line 4195). What does this mean exactly? Does this mean that multiple threads cannot write to the same connection at the same time? Or does it mean that only one thread can write at any time, even if they are to different connections?For any given connection, only one thread should be writing to it.
Thanks Sergey. That's what I wanted to know. I will have multiple
connections/threads, but no two threads will be writing to the same
connection at the same time. It sounds like my use case is supported.