chatlib: do not send chat messages to controlled bots
graph: first try more memory friendly bsp size check build: restore ssse3 & ssse3 instructions (use nosmid version if needed) Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
54647c7eca
commit
855fb903b6
13 changed files with 76 additions and 41 deletions
|
|
@ -281,7 +281,7 @@ public:
|
|||
// bot async worker wrapper
|
||||
class BotThreadWorker final : public Singleton <BotThreadWorker> {
|
||||
private:
|
||||
ThreadPool m_botWorker {};
|
||||
UniquePtr <ThreadPool> m_pool {};
|
||||
|
||||
public:
|
||||
explicit BotThreadWorker () = default;
|
||||
|
|
@ -297,12 +297,12 @@ public:
|
|||
fn (); // no threads, no fun, just run task in current thread
|
||||
return;
|
||||
}
|
||||
m_botWorker.enqueue (cr::move (fn));
|
||||
m_pool->enqueue (cr::move (fn));
|
||||
}
|
||||
|
||||
public:
|
||||
bool available () {
|
||||
return m_botWorker.threadCount () > 0;
|
||||
return m_pool && m_pool->threadCount () > 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue