Answer the question
In order to leave comments, you need to log in
How to correctly execute a class method in a thread?
Here we have a MyClass class, and in this class there is a method that, under a certain condition, calls another method in a new thread, but I'm not entirely sure that I'm doing it right. Therefore, I turn to you.
Here's how I did it:
std::thread NewThread(&ClientThread, *this, NewConn);
Answer the question
In order to leave comments, you need to log in
1. Enable logging on Nginx
2. Check the permissions on the /home/vasya/api-cms-server/public/uploads/ directory and the files in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question