Prg_Ipc_Wait_For_Port()
Abstract
Waits until either data is received from an IPC port or the wait times out.
Syntax
Prg_Ipc_Wait_For_Port (double timeout, PrgT_Ipc_Port_Handle port_handle);
| Argument | Type | Description |
|---|---|---|
port_handle |
PrgT_Ipc_Port_Handle |
PRG Ipc port which is waiting for data |
timeout |
double |
timeout time (in seconds) |
Return Type
PrgC_Ipc_Wait_Timeout on timeout, or PrgC_Ipc_Wait_Packet_Received on data received
Header
prg_ipc.h
Details
Block the execution of the calling program until one of the following events happens:
- A given amount of time elapses with no data coming into the PRG IPC port, in which case program execution continues after this call.
- There is incoming data on the PRG IPC port, in which case program execution continues after this call. The port's handler is called asynchronously (at a later time when program control returns to main event loop) to deal with incoming data.