mirror of
https://github.com/tkuschel/bees.git
synced 2025-11-18 07:19:14 +01:00
c++20: Implicit value sharing of this is deprecated in C++20
Fix the handful of instances. Signed-off-by: Zygo Blaxell <bees@furryterror.org> (cherry picked from commit 4d6b21fb40174c3ecdc9e97670dae0dd22ce74a6)
This commit is contained in:
@@ -1126,15 +1126,15 @@ BeesContext::start()
|
||||
m_progress_thread = make_shared<BeesThread>("progress_report");
|
||||
m_progress_thread = make_shared<BeesThread>("progress_report");
|
||||
m_status_thread = make_shared<BeesThread>("status_report");
|
||||
m_progress_thread->exec([=]() {
|
||||
m_progress_thread->exec([this]() {
|
||||
show_progress();
|
||||
});
|
||||
m_status_thread->exec([=]() {
|
||||
m_status_thread->exec([this]() {
|
||||
dump_status();
|
||||
});
|
||||
|
||||
// Set up temporary file pool
|
||||
m_tmpfile_pool.generator([=]() -> shared_ptr<BeesTempFile> {
|
||||
m_tmpfile_pool.generator([this]() -> shared_ptr<BeesTempFile> {
|
||||
return make_shared<BeesTempFile>(shared_from_this());
|
||||
});
|
||||
m_logical_ino_pool.generator([]() {
|
||||
|
||||
@@ -14,7 +14,7 @@ BeesThread::exec(function<void()> func)
|
||||
{
|
||||
m_timer.reset();
|
||||
BEESLOGDEBUG("BeesThread exec " << m_name);
|
||||
m_thread_ptr = make_shared<thread>([=]() {
|
||||
m_thread_ptr = make_shared<thread>([this, func]() {
|
||||
BeesNote::set_name(m_name);
|
||||
BEESLOGDEBUG("Starting thread " << m_name);
|
||||
BEESNOTE("thread function");
|
||||
|
||||
Reference in New Issue
Block a user