nqf
nqf
> So far the only one I found is this one: https://github.com/andreasbuhr/cppcoro > > But that seems to also be no longer maintained It's a pity that this library has...
@marty1885 It seems that variables cannot be captured using =, Because it will be destructed, Do you know why? ``` int main() { { auto ptr = std::make_shared("hh"); drogon::async_run([ptr]() ->...
@hwc0919 use drogon v1.8.0 still have a memory leak, maybe need call `mysql_library_end();` in drogon ``` ==13766== Memcheck, a memory error detector ==13766== Copyright (C) 2002-2017, and GNU GPL'd, by...
I called `mysql_library_end` in my application, but this error occurred `Error in my_thread_global_end(): 16 threads didn't exit`
it seem that also need call `mysql_thread_end`
``` ==11618== Memcheck, a memory error detector ==11618== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==11618== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info...
@an-tao It reduces some memory leak, but It still has memory leak, also need call `mysql_thread_end`
https://dev.mysql.com/doc/refman/5.7/en/libmysqld.html 
``` void DbClientImpl::closeAll() { std::lock_guard lock(connectionsMutex_); for (auto const &conn : connections_) { conn->disconnect(); } connections_.clear(); readyConnections_.clear(); busyConnections_.clear(); // ------------------------------------------ if (type_ == ClientType::Mysql) { for (int i = 0;...
https://dev.mysql.com/doc/c-api/5.7/en/mysql-init.html mysql-init not thread safe