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
|
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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user