On Wed, May 28, 2008 at 6:15 PM, Rui Jorge Coelho <[EMAIL PROTECTED]>
wrote:
> I cannot have 2 threads writing to the same pipe/socket without a
> sync/mutex. I send a reference to a C++ object back to the main thread for
> processing.
>
You actually can, if the write is completed in one go. Single write
operations are atomic.
I do not know, how can you guarantee this, I might read some literature on
that.
Is it one-way channel, callback -> main program, or two-way? Have you
considered shared
memory? With shared memory, you can easily organise some structure, for
example,
a ringbuffer, to do producer/consumer.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general