스레드 재수정
This commit is contained in:
10
Server/include/ServerManager/ServerManager.hpp
Normal file
10
Server/include/ServerManager/ServerManager.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
namespace Chattr {
|
||||
|
||||
class ServerManager {
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
0
Server/src/ServerManager/ServerManager.cpp
Normal file
0
Server/src/ServerManager/ServerManager.cpp
Normal file
@@ -5,7 +5,6 @@
|
||||
#include "Utils/Thread.hpp"
|
||||
#include "Utils/ThreadPool.hpp"
|
||||
#include "Utils/StringTokenizer.hpp"
|
||||
#include "Session/Session.hpp"
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
@@ -41,8 +40,8 @@ int main() {
|
||||
spdlog::info("PID : {}", pid);
|
||||
|
||||
|
||||
Chattr::ThreadPool threadPool(3);
|
||||
/*int returnedIntager = 0;
|
||||
Chattr::ThreadPool threadPool(0);
|
||||
int returnedIntager = 0;
|
||||
int passvalue = 2;
|
||||
threadPool.enqueueJob([](int& i){
|
||||
spdlog::info("JobTest");
|
||||
@@ -53,7 +52,7 @@ int main() {
|
||||
return 1;
|
||||
}, returnedIntager, std::ref(passvalue));
|
||||
|
||||
Sleep(1000);*/
|
||||
sleep(10);
|
||||
|
||||
while (true) {
|
||||
spdlog::info("Waiting for connection...");
|
||||
|
||||
Reference in New Issue
Block a user