S
S
Sazoks2019-08-04 23:46:50
OOP
Sazoks, 2019-08-04 23:46:50

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);

I will not rant much.. *this confuses me.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Grigoriev, 2017-12-08
@triggerfinger

1. Enable logging on Nginx
2. Check the permissions on the /home/vasya/api-cms-server/public/uploads/ directory and the files in it.

M
Mykola, 2017-12-08
@IKMOL

I think you need to remove / (slash)
Change to:

location / {
    proxy_pass http://api_data;
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question