Re: IoFreeWorkItem and return function.
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Sep 2006 22:44:01 -0700
you need the return in the if() if you don't to execute the code after it.
this is not a workitem quesiton, this is more of a language question.
perhaps you should brush up on C and what you want to accomplish
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
<hsphuah@xxxxxxx> wrote in message
news:1158030959.302799.58210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I am new to device driver development and need an advice. I issue a
callback using this IoQueueWorkItem funciton.
In my callback function, I have following code:
void callback_function(....)
{
...
if (status)
{
IoFreeWorkItem(...);
return;
}
....
IoFreeWorkItem;
}
For the above simple IoFreeWorkItem, do I need to have a return in the
if statement?
Thanks.
HS Phuah
.
- Follow-Ups:
- Re: IoFreeWorkItem and return function.
- From: hsphuah
- Re: IoFreeWorkItem and return function.
- References:
- IoFreeWorkItem and return function.
- From: hsphuah
- IoFreeWorkItem and return function.
- Prev by Date: Re: maximum driver handles per process?
- Next by Date: Re: Trouble Installing Driver Using DIFxApp
- Previous by thread: IoFreeWorkItem and return function.
- Next by thread: Re: IoFreeWorkItem and return function.
- Index(es):
Relevant Pages
|