fixed part of code left out in the previous commit

This commit is contained in:
hyung-hwan 2018-07-01 02:20:03 +00:00
parent 27039d9693
commit c4e66a102a
3 changed files with 6 additions and 4 deletions

View File

@ -204,10 +204,10 @@ template <typename RT, typename... ARGS>
class TcpServerL<RT(ARGS...)>: public TcpServer class TcpServerL<RT(ARGS...)>: public TcpServer
{ {
public: public:
TcpServerL (Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT: Mmgr(mmgr), __lfunc(nullptr) {} TcpServerL (Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT: TcpServer(mmgr), __lfunc(nullptr) {}
template <typename T> template <typename T>
TcpServerL (T&& f, Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT: Mmgr(mmgr), __lfunc(nullptr) TcpServerL (T&& f, Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT: TcpServer(mmgr), __lfunc(nullptr)
{ {
try try
{ {

View File

@ -182,7 +182,7 @@ public:
int start (T&& f, int flags) QSE_CPP_NOEXCEPT int start (T&& f, int flags) QSE_CPP_NOEXCEPT
//int start (T f, int flags) QSE_CPP_NOEXCEPT //int start (T f, int flags) QSE_CPP_NOEXCEPT
{ {
if (this->__state == QSE_THR_RUNNING) return -1; if (this->thr.__state == QSE_THR_RUNNING) return -1;
if (this->__lfunc) this->getMmgr()->dispose (this->__lfunc); //delete this->__lfunc; if (this->__lfunc) this->getMmgr()->dispose (this->__lfunc); //delete this->__lfunc;
try try
{ {

View File

@ -77,7 +77,9 @@ static int test1 (void)
qse_printf (QSE_T("byte to %s\n"), addrbuf); qse_printf (QSE_T("byte to %s\n"), addrbuf);
return 0; return 0;
}) }),
&heap_mmgr
); );
#else #else