next up previous contents index
Next: 4.8.9 unlockregion: Unlock a Up: 4.8 oskit_stream: standard interface Previous: 4.8.7 revert: Revert to

4.8.8 lockregion: Lock a region of this object

 

SYNOPSIS

#include <oskit/com/stream.h>

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

DESCRIPTION

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

PARAMETERS

f
The object to lock.
offset
The starting byte offset of the range to be locked.
size
The length in bytes of the range.
lock_type
The type of lock to apply.

RETURNS

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



University of Utah Flux Research Group