NAME

grpc_wait_any - Waits for any session to end.

SYNOPSIS

grpc_error_t grpc_wait_any(grpc_sessionid_t *idPtr)

ARGUMENTS

grpc_sessionid_t *idPtr
Pointer to an area for returning the session ID of the session that has completed execution

DESCRIPTION

The grpc_wait_any() function waits for any one of the currently executing sessions to end. When no executing sessions exist, the grpc_wait_any() function returns GRPC_NOERROR and sets GRPC_SESSIONID_VOID to the area pointed by idPtr.

This function is MT-unsafe.

RETURN VALUE

If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.

ERRORS

GRPC_NOT_INITIALIZED
GRPC client is not initialized yet.
GRPC_SESSION_FAILED
The specified session failed.
GRPC_TIMEOUT_NP
Timeout occurred in session.
GRPC_OTHER_ERROR_CODE
Internal error detected.

last update : $Date: 2007/07/27 02:43:36 $