Answer the question
In order to leave comments, you need to log in
Is it correct to call the same function from different threads?
There are objects of class A, each of which stores a reference to 1 object of class B.
I put all these objects in threads using moveToThread ().
Each object of class A, in the course of its work, calls a method from an object of class B.
Tell me, is this a normal practice, or can there be some kind of error in the case when 2 objects A simultaneously call a method from B?
Thank you.
Answer the question
In order to leave comments, you need to log in
Is this a normal practice, or can there be some kind of error in the case when 2 objects A simultaneously call a method from B?
int global;
class B
{
static int class_static;
public:
void f()
{
static int function_static;
}
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question