io_wrapper_open2 — Open a handle to a resource with context
io_object * **io_wrapper_open2** ( | filename, | |
| | options, | |
| | mode, | |
| | context
); | |
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Open a handle to a resource with context.
The io object takes a reference on the context.
This function may induce IO or otherwise block the caller. Blocking in the scheduler thread will lead to degraded performance and should be avoided at all costs. If your code is running in the IO subsystem, the core will have already taken steps to ensure that blocking is acceptable. Otherwise, you should look at using the thread pool API to run a job in the IO pool.