next up previous contents index
Next: 19 Memory Debugging Utilities: Up: 18.4 Thread-safe Adaptors Previous: 18.4.10 oskit_wrap_blkio: Wrap an

18.4.11 oskit_wrap_absio: Wrap an oskit_absio in a thread-safe adaptor

 

SYNOPSIS

#include <oskit/com/wrapper.h>

oskit_error_t oskit_wrap_absio(struct oskit_absio *in, void (*lock)(void *), void (*unlock)(void *), void *cookie, struct oskit_absio **out);

DESCRIPTION

Create and return an oskit_absio thread-safe adaptor.

PARAMETERS

in
The oskit_absio 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_absio adaptor COM interface.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.


University of Utah Flux Research Group