Logo Search packages:      
Sourcecode: jamin version File versions

int jack_ringbuffer_mlock ( jack_ringbuffer_t *  rb  ) 

Lock a ringbuffer data block into memory.

Uses the mlock() system call. This is not a realtime operation.

rb a pointer to the ringbuffer structure.

Definition at line 73 of file ringbuffer.c.

  if (mlock (rb->buf, rb->size)) {
    return -1;
  rb->mlocked = 1;
  return 0;

Generated by  Doxygen 1.6.0   Back to index