mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Replace some boost::thread with beast::thread
This commit is contained in:
@@ -33,8 +33,11 @@ SqliteStatement::~SqliteStatement ()
|
||||
sqlite3_finalize (statement);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
SqliteDatabase::SqliteDatabase (const char* host)
|
||||
: Database (host)
|
||||
, m_thread ("sqlitedb")
|
||||
, mWalQ (NULL)
|
||||
, walRunning (false)
|
||||
{
|
||||
@@ -290,9 +293,13 @@ void SqliteDatabase::doHook (const char* db, int pages)
|
||||
}
|
||||
|
||||
if (mWalQ)
|
||||
{
|
||||
mWalQ->addJob (jtWAL, std::string ("WAL:") + mHost, BIND_TYPE (&SqliteDatabase::runWal, this));
|
||||
}
|
||||
else
|
||||
boost::thread (BIND_TYPE (&SqliteDatabase::runWal, this)).detach ();
|
||||
{
|
||||
m_thread.call (&SqliteDatabase::runWal, this);
|
||||
}
|
||||
}
|
||||
|
||||
void SqliteDatabase::runWal ()
|
||||
|
||||
Reference in New Issue
Block a user