#include <oskit/com/wrapper.h>oskit_error_t oskit_wrap_posixio(struct oskit_posixio *in, void (*lock)(void *), void (*unlock)(void *), void *cookie, struct oskit_posixio **out);
Create and return an oskit_dir thread-safe adaptor.
- in
- The oskit_posixio COM interface to be wrapped.
- lock
- The process lock routine.
- unlock
- The process unlock routine.
- cookie
- A cookie to be passed to the lock and unlock routines.
- out
- The oskit_posixio adaptor COM interface.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.