rrCreateContext
Creates RR API context.
All RR functions expect context as their first argument. Context keeps global data required by an RR session.
Calls made from different threads with different RR contexts are safe. Calls with the same context should be externally synchronized by the client.
RRError rrCreateContext( |
uint32_t api_version, |
RRApi api, |
|
RRContext* context); |
Applies to
All supported backends
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
api_version |
input |
API version. |
api |
input |
Backend type. |
context |
output |
Created context. |
Return
Returns an error in case of a failure, or RR_Success otherwise.