NAME | SYNOPSIS | API RESTRICTIONS | PARAMETERS | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/sysevent/sysevent.a #include <sysevent/chSysevent.h>int syseventGet(int spaceId, int queueId, KnTimeval *waitLimit, Knsysevent **sysevent);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
Handle pointing to the event space
Identifier of the event queue to wait on
Timeout, if there is no free event buffer immediately available
Address of a pointer to where the event buffer address is stored
The syseventGet() function returns the first system event with the highest priority waiting in the event queue named by queueId.
If an event is pending behind the specified queue, this call sets the address of the event into sysevent and returns K_OK. Otherwise, syseventGet() may wait for the posting of an event, according to the value of waitLimit. If waitLimit is set to K_NOBLOCK, syseventGet() immediately returns with a K_ETIMEOUT error code. Otherwise, the caller is blocked until an event is posted to the specified queue by syseventPut(), or until the timeout expires.
K_OK is returned on successful completion. Otherwise, a negative error code is returned.
spaceId is not valid
queueId is not valid event queue identifier
The maximum waiting time expired
sysevent has a null value. Note that if this pointer is a non accessible address, the caller actor crashes itself in PRM or VM memory models. Otherwise, the FLM memory model can behave unpredictably.
The invoking thread was aborted while waiting for an event
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | PARAMETERS | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO