llmodel: constify LLModel::threadCount()

This commit is contained in:
Juuso Alasuutari
2023-05-21 23:45:29 +03:00
committed by AT
parent efd39b0d73
commit 81fdc28e58
9 changed files with 12 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ public:
std::function<bool(bool)> recalculateCallback,
PromptContext &ctx) = 0;
virtual void setThreadCount(int32_t n_threads) {}
virtual int32_t threadCount() { return 1; }
virtual int32_t threadCount() const { return 1; }
protected:
virtual void recalculateContext(PromptContext &promptCtx,