简体   繁体   中英

is Qt's event loop is FIFO?

When you send a signal into a thread that it is not the GUI thread (by instance from a socket thread), the signal is enqueued in the event loop of the receiver's thread.(I believe this, tell me if I am wrong)

I am wondering if this queue is FIFO ? I can't find it with google..

There are 5,820,000 results on Google for qt signal queue fifo , the first having in its result summary the following wording from Qt's documentation:

A queue is a first in, first out (FIFO) structure.

So, where they've used the term "queue", they indeed mean FIFO as the word implies anyway.

This would also be easy to test for yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM