Board index » cppbuilder » i hope you can help me on an API function

i hope you can help me on an API function


2006-08-05 10:29:17 PM
cppbuilder99
Sorry,
i know it's not a question about Borland, but about Windows SDK,
but it's enough easy to hope that some of you can answer me whitout
problems.
It's about WaitForMultipleObjects function.
If i use the value FALSE for the bWaitAll parameter
and more objects are signalled, i expect that the thread that
called WaitForMultipleObjects acquires only one [tha with the
minimum index] of those objects.
Is it like that?
From the description in the Help (i opened it from the BCB 6 Update 4 IDE),
nowhere is clearry written this feature.
Really the sentence
<If bWaitAll is FALSE, the return value minus WAIT_OBJECT_0 indicates the
lpHandles array index of the object that satisfied the wait. If more than
one object became signalled during the call, this is the array index of the
signalled object with the smallest index value of all the signalled
objects.>
doesn't make me sure, when says "...of all the signalled objects".
Of course it says only 'signalled' and not 'acquired', so can't be wrong.
But i hope some of you can make me sure about my idea.
Best Regards,
Mauro.
 
 

Re:i hope you can help me on an API function

You might enjoy better results from that question by posting it on the
borland.public.cppbuilder.nativeapi group where the Windows API is the
expected subject.
. Ed
Quote
mauro russo wrote in message
news: XXXX@XXXXX.COM ...
Sorry,
i know it's not a question about Borland, but about Windows SDK,
but it's enough easy to hope that some of you can answer me whitout
problems.

It's about WaitForMultipleObjects function.

If i use the value FALSE for the bWaitAll parameter
and more objects are signalled, i expect that the thread that
called WaitForMultipleObjects acquires only one [tha with the
minimum index] of those objects.
Is it like that?

From the description in the Help (i opened it from the BCB 6 Update 4
IDE),
nowhere is clearry written this feature.
Really the sentence
<If bWaitAll is FALSE, the return value minus WAIT_OBJECT_0 indicates the
lpHandles array index of the object that satisfied the wait. If more than
one object became signalled during the call, this is the array index of
the
signalled object with the smallest index value of all the signalled
objects.>
doesn't make me sure, when says "...of all the signalled objects".
Of course it says only 'signalled' and not 'acquired', so can't be wrong.

But i hope some of you can make me sure about my idea.
 

Re:i hope you can help me on an API function

mauro russo wrote:
Quote
objects.>
doesn't make me sure, when says "...of all the signalled objects".
Of course it says only 'signalled' and not 'acquired', so can't be wrong.

But i hope some of you can make me sure about my idea.

No object is acquired by this function. It returns when a condition for
wait termination is satisfied.
.a
 

{smallsort}