If its a synchronous task the Ioctl handler will SendMessage(Timeout?) to
the worker thread.
Any response can be sent back in the Ioctl parameters in this case.
Can anyone see any flaws in this architecture or areas for improvement?
thanks
__________ Information from ESET Smart Security, version of virus signature database 4161 (20090617) __________
The message was checked by ESET Smart Security.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"coder" <co...@hotmail.com> wrote in message
news:%23c$g9Lz7J...@TK2MSFTNGP04.phx.gbl...
OR both maybe?
"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:Oc8cLV17...@TK2MSFTNGP03.phx.gbl...
> signature database 4162 (20090617) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
__________ Information from ESET Smart Security, version of virus signature database 4162 (20090617) __________
For transporting data we were going to use the wparam field to pass in a
pointer
to small datastruct ie the ioctl handler would create this object and send
it across
for executioon on the worker. unfortunately we would need to cleanup on the
otherside
of the thread boundary in the case of PostMessage.
"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:uDSZvB27...@TK2MSFTNGP03.phx.gbl...
>I wouldn't use it for either. Windows Messages are slow, they require the
>client to actually have a message pump, they are a pain for transferring
>anything beyone 32-bit numbers and they suck for cross-thread comms.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
> "coder" <co...@hotmail.com> wrote in message
> news:eXqAn317...@TK2MSFTNGP05.phx.gbl...
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"coder" <co...@hotmail.com> wrote in message
news:eXqAn317...@TK2MSFTNGP05.phx.gbl...
As for notifying the application back that something is done, how to do it
depends on what form the notification takes. If you have to return data,
another message queue, facing the other directions (queues are one-way),
would be possible. If not, a simple OS-level event, CreateEvent(),
WaitForSingleObject(), etc. is a good way to go.
Paul T.
"coder" <co...@hotmail.com> wrote in message
news:eyF8kJ27...@TK2MSFTNGP05.phx.gbl...