I am new to C++ and Qt and I am wondering what happens if I emit a signal
in object1
running in thread1
, to another object2
running in another thread2
and object2
is running an infinite loop for processing? Will the slot
in object2
never be called since the thread2
is busy running the loop?
相关问题
- Sorting 3 numbers without branching [closed]
- QML: Cannot read property 'xxx' of undefin
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
Yes and no.
If you do not process events, then the thread will not chance to process the events, signals, and slots as you would expect.
However, you could make an event loop there that occasionally does process the events coming in, and then it would work as you expect it to.
My longer explanation than this is available here for people who would like to get more detailed information about the topic.