J
Jayme Pechan
I've been working on porting an application to C# that was previously
written in C++. This application is a windows service application so there
is no user interface. I have a number of worker threads in C++ that create
components and wait for messages from the main thread to process work. This
was all done using the PostThreadMessage and GetMessage. I recall that in
Unix I used to do this kind of thing with Pipes but I can't figure out how
to do this in C#. I need the thread to block until the main thread sends it
data to process and that is what the Pipes and GetMessage both did. Any
idea what is the correct way to duplicate this behavior in C# managed code?
Thanks.
written in C++. This application is a windows service application so there
is no user interface. I have a number of worker threads in C++ that create
components and wait for messages from the main thread to process work. This
was all done using the PostThreadMessage and GetMessage. I recall that in
Unix I used to do this kind of thing with Pipes but I can't figure out how
to do this in C#. I need the thread to block until the main thread sends it
data to process and that is what the Pipes and GetMessage both did. Any
idea what is the correct way to duplicate this behavior in C# managed code?
Thanks.