일단 오늘은 이걸로..
This commit is contained in:
@@ -51,8 +51,8 @@ class ThreadPool {
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> lock(jobQueueMutex);
|
||||
auto boundFunc = [this, __job, ... __args = __args]() mutable {
|
||||
__job(this, __args...);
|
||||
auto boundFunc = [this, __job, ... __args = std::move(__args)]() mutable {
|
||||
__job(this, std::move(__args)...);
|
||||
};
|
||||
auto task = std::packaged_task<void()>(std::move(boundFunc));
|
||||
jobs_.push(std::move(task));
|
||||
|
||||
@@ -166,7 +166,7 @@ struct Model {
|
||||
|
||||
double lastUpdatedTime = 0.f; // 서버 기준 업데이트된 시간임
|
||||
|
||||
std::uint8_t updateRedundantCount;
|
||||
std::uint8_t updateRedundantCount = 0;
|
||||
|
||||
std::mutex modding;
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ class Engine {
|
||||
|
||||
private:
|
||||
Loader asset_loader_;
|
||||
Physics physics_controller_;
|
||||
utils::ThreadPool* thread_pool_;
|
||||
Network::IOCP* iocp_;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
namespace veng {
|
||||
class Physics {
|
||||
public:
|
||||
void invokeOnColisionEvent(
|
||||
static void invokeOnColisionEvent(
|
||||
gsl::not_null<utils::ThreadPool*> thread_pool,
|
||||
std::unordered_map<std::string, std::shared_ptr<Model>>& models);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user