FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

[Seqan-dev] FaiIndex + getIdByName/readRegion not threads-safe

<-- thread -->
<-- date -->
  • From: Johannes Dröge <johdro@mpi-inf.mpg.de>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Wed, 18 Sep 2013 14:53:17 +0200
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: [Seqan-dev] FaiIndex + getIdByName/readRegion not threads-safe

Hi Seqan team,

I recently ported my code to use an off-memory sequence store with your FaiIndex class. Here is the problem: Whenever I use more than two threads to read a region using getIdByName+readRegion, the region returned is incorrect. The class does not seem to be thread-safe, although I cannot image why read-only functions like the above should not be run in parallel. I could wrap the lookup into a class with a locking mechanism but I imagine it would be easy and quick to fix the class without introducing unnecessary locks.

When I give readRegion an object of type "const FaiIndex", it segfaults. IMO, whenever your index is read-only, the methods should be thread-safe or not available at all.

Gruß Johannes



<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [Seqan-dev] FaiIndex + getIdByName/readRegion not threads-safe
      • From: "Weese, David" <weese@campus.fu-berlin.de>
  • seqan-dev - September 2013 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal