git add thread file

This commit is contained in:
caozhiyi
2018-07-04 19:11:08 +08:00
parent aaf4d24076
commit 3f57423643
40 changed files with 1021 additions and 854 deletions

View File

@@ -2,11 +2,11 @@
#include "SocketBase.h"
#include "EventActions.h"
CSocketBase::CSocketBase() : _add_event_actions(false), _invalid(false), _event_actions(nullptr), _pool(new CMemaryPool(1024, 20)) {
CSocketBase::CSocketBase() : _add_event_actions(false), _invalid(false), _event_actions(nullptr), _pool(new CMemoryPool(1024, 20)) {
memset(_ip, 0, __addr_str_len);
}
CSocketBase::CSocketBase(std::shared_ptr<CEventActions>& event_actions) : _add_event_actions(false), _invalid(false), _event_actions(event_actions), _pool(new CMemaryPool(1024, 20)) {
CSocketBase::CSocketBase(std::shared_ptr<CEventActions>& event_actions) : _add_event_actions(false), _invalid(false), _event_actions(event_actions), _pool(new CMemoryPool(1024, 20)) {
memset(_ip, 0, __addr_str_len);
}