ADIC Server Server User Manual


 
aci_async_find() 5-15
21 Dec 2001
Return Values
The call was successful if a pointer to the found value is
returned.
The call failed if zero is returned
The structure of the aci_async_entry uses a pid_t type member
pid as a unique identifier of an entry. When calling several
asynchronous calls at a time the system can assign the same
process id to a new process when a previous call has
terminated. This could cause duplicate values the in pid fields
of shared memory array entries. Refer to Response Technique on
page 5-21.
See Figure 5-13 for an example of the aci_async_find function.
Figure 5-13 Example of the aci_async_find Function
. . .
/*
* sadmin sample application. wait_for_child.c file
*/
if ((async_entry = aci_async_find(pid)) != 0)
{
printf("results: getting results...\n");
switch(async_entry->aci_func)
{
case DAS_MOUNT:
. . .
}
aci_async_free(async_entry);
printf("results: results done...\n");
}
. . .