]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.h
Fix critical block logic
[r2c2.git] / source / libr2c2 / train.h
index 113af0e09a3d424f5744406601d4c5640ce67730..dff9aae666fa3f301b02bf21203024c578a677dc 100644 (file)
@@ -121,7 +121,10 @@ public:
        bool is_placed() const { return !allocator.empty(); }
        void stop_at(Block *);
        bool is_block_critical(const Block &) const;
-       BlockIter get_first_noncritical_block() const;
+       BlockIter get_last_critical_block() const;
+private:
+       BlockIter check_critical_blocks(const Block *) const;
+public:
        void refresh_blocks_from(Block &);
        const BlockAllocator &get_block_allocator() const { return allocator; }
        float get_reserved_distance() const;