Searched refs:crnt_seg (Results 1 – 2 of 2) sorted by relevance
100 * crnt_seg, (size_t) bytes_to_read)) == -1 ) in move_au()115 is_last_seg[crnt_seg] = 1; in move_au()119 if ( pthread_mutex_trylock(&seg_mutex[(crnt_seg + 1) in move_au()123 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_au()124 crnt_seg = (crnt_seg + 1) % th_arg->ringbuf_segs; in move_au()127 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_au()143 if ( bytes_in_seg[crnt_seg] == 0 ) { in move_au()156 bytes_to_write = bytes_in_seg[crnt_seg] - (bytes_in_seg[crnt_seg] in move_au()189 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_au()190 crnt_seg = (crnt_seg + 1) % th_arg->ringbuf_segs; in move_au()[all …]
86 int crnt_seg = 0; /* current ring buffer segment index */ in move_fd() local95 * crnt_seg, (size_t) bytes_to_write)) == -1 ) { in move_fd()105 if ( is_last_seg[crnt_seg] ) in move_fd()109 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_fd()110 crnt_seg = (crnt_seg + 1) % th_arg->ringbuf_segs; in move_fd()113 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_fd()137 * crnt_seg, (size_t) bytes_to_read)) == -1 ) { in move_fd()157 bytes_in_seg[crnt_seg] = bytes_read; in move_fd()196 pthread_mutex_unlock(&seg_mutex[crnt_seg]); in move_fd()197 crnt_seg = (crnt_seg + 1) % th_arg->ringbuf_segs; in move_fd()[all …]