fixed part of code left out in the previous commit
This commit is contained in:
parent
27039d9693
commit
c4e66a102a
@ -204,10 +204,10 @@ template <typename RT, typename... ARGS>
|
||||
class TcpServerL<RT(ARGS...)>: public TcpServer
|
||||
{
|
||||
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>
|
||||
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
|
||||
{
|
||||
|
@ -182,7 +182,7 @@ public:
|
||||
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;
|
||||
try
|
||||
{
|
||||
|
@ -77,7 +77,9 @@ static int test1 (void)
|
||||
|
||||
qse_printf (QSE_T("byte to %s\n"), addrbuf);
|
||||
return 0;
|
||||
})
|
||||
}),
|
||||
|
||||
&heap_mmgr
|
||||
|
||||
);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user