/**
 * Closes files.
 */
void BCFSyncedStreamReader::close()
{
    for (int32_t i = 0; i<nfiles; ++i)
    {
        bcf_close(vcfs[i]);
        bcf_hdr_destroy(hdrs[i]);
        bcf_itr_destroy(itrs[i]);
    }
}
Beispiel #2
0
/**
 * Closes files.
 */
void BCFSyncedReader::close()
{
    for (size_t i=0; i<nfiles; ++i)
    {
        bcf_close(files[i]);
        bcf_hdr_destroy(hdrs[i]);
        bcf_itr_destroy(itrs[i]);
    }

    while (pool.size()!=0)
    {
        bcf_destroy(pool.front());
        pool.pop_front();
    }
}