File: README.md

package info (click to toggle)
libslow5lib 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,280 kB
  • sloc: ansic: 13,123; python: 1,353; sh: 600; makefile: 98; cpp: 40
file content (11 lines) | stat: -rwxr-xr-x 1,061 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# slow5lib mt Examples

**This is not meant to be used by a programmer who has the expertise to write efficient multi-threaded code and use the slow5 low-level API directly. Such advanced examples are at [advanced examples](../adv/)**

This directory contains examples that uses the easy multi-thread API in slow5lib.  For these examples to work you must build slow5lib with easy multi-thread API enabled as `make slow5_mt=1`. To link against slow5lib built with easy multi-thread API, make sure to append `-lpthread` flag.

- *mt.c* demonstrates how to use the easy multi-thread API to first write and then fetch a batch of slow5/blow5 records in parallel.
- *lazymt.c* demonstrates how to use the lazy function to do the same as above, which is meant for a lazy programmer.

You can invoke [build.sh](build.sh) from slow5lib directory as `examples/mt/build.sh` to compile the example programmes. Have a look at the script to see the commands used for compiling and linking. Also make sure you get familiar with the basic examples first, before trying these.