是Qt的事件循环是FIFO吗? [英] is Qt's event loop is FIFO?

查看:243
本文介绍了是Qt的事件循环是FIFO吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你发送信号到一个线程,它不是GUI线程(通过实例从套接字线程),信号在接收者的线程的事件循环中排队(我相信这,告诉我,如果我是错误)

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)

我想知道这个队列是否为FIFO?我找不到它与谷歌..

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

推荐答案

在Google上有$ 5,820,000结果 qt信号队列fifo ,第一个在其结果摘要中有以下来自Qt的文档的措辞:

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:


队列是先进先出(FIFO)结构。

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.

这篇关于是Qt的事件循环是FIFO吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆