next up previous contents index
Next: 4.8.10 stat: Get attributes Up: 4.8 oskit_stream: standard interface Previous: 4.8.8 lockregion: Lock a

4.8.9 unlockregion: Unlock a region of this object

 

SYNOPSIS

#include <oskit/com/stream.h>

OSKIT_COMDECL oskit_stream_unlockregion(oskit_stream_t *f, oskit_u64_t offset, oskit_u64_t size, oskit_u32_t lock_type);

DESCRIPTION

This method unlocks a range of this stream object, where the range starts at the specified byte offset and extends for the specified size bytes.

The parameters must match the parameters used in a prior oskit_stream_lockregion call.

PARAMETERS

f
The object to unlock.
offset
The starting byte offset of the range to be unlocked.
size
The length in bytes of the range.
lock_type
The type of lock to release.

RETURNS

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



University of Utah Flux Research Group