summaryrefslogtreecommitdiff
path: root/src/Piece.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-11 13:37:46 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-11 13:37:46 +0000
commit1a4100cbc9c44ebc49cd76c989a5c5b188ea9ede (patch)
treeb97b899adc40f4a8f35321821f76d903a8985695 /src/Piece.h
parent5516bc02cb0099208f3f3efee92d8564014ff03a (diff)
2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called from PiecedSegment's ctor. Previously Piece::getAllMissingBlockIndexes() is called from PiecedSegment() but it is rather expensive since only first element is used. * src/PiecedSegment.cc * src/Piece.{h, cc}
Diffstat (limited to 'src/Piece.h')
-rw-r--r--src/Piece.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Piece.h b/src/Piece.h
index d1428709..5686dab4 100644
--- a/src/Piece.h
+++ b/src/Piece.h
@@ -86,6 +86,7 @@ public:
int32_t getMissingUnusedBlockIndex() const;
int32_t getMissingBlockIndex() const;
+ int32_t getFirstMissingBlockIndexWithoutLock() const;
BlockIndexes getAllMissingBlockIndexes() const;
void completeBlock(int32_t blockIndex);
void cancelBlock(int32_t blockIndex);