일단 iocp는 완성한 듯 윈도우에서만 되면 될 듯
This commit is contained in:
@@ -4,10 +4,12 @@ namespace Chattr {
|
||||
|
||||
Thread::Thread(Thread&& other) noexcept {
|
||||
other.detach();
|
||||
memcpy(this, &other, sizeof(Thread));
|
||||
}
|
||||
|
||||
Thread& Thread::operator=(Thread&& other) noexcept {
|
||||
other.detach();
|
||||
memcpy(this, &other, sizeof(Thread));
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -16,8 +18,6 @@ Thread::~Thread() {
|
||||
spdlog::critical("There is not joined thread");
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
if (returnValuePtr != nullptr)
|
||||
delete returnValuePtr;
|
||||
}
|
||||
|
||||
void Thread::detach() {
|
||||
|
||||
Reference in New Issue
Block a user