File: slow5threads.h

package info (click to toggle)
libslow5lib 0.7.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 25,092 kB
  • sloc: ansic: 11,825; python: 1,179; sh: 547; makefile: 91; cpp: 40
file content (17 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* @file slow5threads.h
**
******************************************************************************/

#ifndef SLOW5THREADS_H
#define SLOW5THREADS_H

//these functions will lazily exit on error (need to do proper error handling, but a bit too much work at the moment)
//also these functions are not optimised for cases that are unlikely to be bottlenecks
//that is they do superfluous mallocs and free and computations in cases which are unlikely to be bottlenecks
//also each batch call will create and destruct threads rather than using a thread pool
int slow5_get_batch(slow5_rec_t ***read, slow5_file_t *s5p, char **rid, int num_rid, int num_threads);
int slow5_get_next_batch(slow5_rec_t ***read, slow5_file_t *s5p, int batch_size, int num_threads);
int slow5_write_batch(slow5_rec_t **read, slow5_file_t *s5p, int batch_size, int num_threads);
void slow5_free_batch(slow5_rec_t ***read, int num_rec);

#endif