Qt reentrant、thread-safe
来源:互联网 发布:知乎 怎么忘记暗恋的人 编辑:程序博客网 时间:2024/05/22 13:06
解释一下贯穿整个Qt帮助文档的俩个关键字reentrant、thread-safe。(通常用来修饰函数或者类)
1.reentrant(可重入的):可以被多个线程同时调用,但是只能调用自己的数据(言外之意就是不能调用共享数据,负责会出现不可预知的结果)。
2.thread-safe(线程安全的):可以被多个线程同时调用,而且可以使用共享数据和自身的数据。
以上可以看出,thread-safe的类或者函数一定是reentrant,而reentrant得类或者函数不一定thread-safe。
注意:详细解释可以在Qt帮助文档搜索 Reentrancy and Thread-Safety
1 0
- Qt reentrant、thread-safe
- thread safe vs reentrant
- thread-safe 和 reentrant
- thread safe vs reentrant
- Reentrant vs Thread-safe
- reentrant,thread-safe 和 async-signal-safe
- reentrant,thread-safe 和 async-signal-safe
- reentrant,thread-safe 和 async-signal-safe
- Race Conditions and Reentrant and thread-safe
- reentrant函数与thread safe函数浅析
- C Thread Safe and Reentrant Function Examples
- Writing Reentrant and Thread-Safe Code(编写可重入和线程安全的代码)
- 编写可重入和线程安全的代码(Writing Reentrant and Thread-Safe Code)
- reentrant(可重入)函数与thread safe(线程安全)函数的区别
- reentrant thread safety
- Thread-safe, Signal-safe
- thread safe
- PHP Thread Safe and Non Thread Safe
- pg_rewind增量同步备库
- python基础教程共60课-第22课函数应用示例
- Activiti5.8自定义用户表
- Vickate_真机授权 真机测试 iOS小白亲测可用哦
- ProgressBar进度条定制
- Qt reentrant、thread-safe
- UITableViewCell 自定义点击状态时背景颜色
- glTexCoord2f(GLfloat x, GLfloat y)函数
- Android:控件WebView显示网页
- 关于wampserver修改php.ini的注意事项
- Java学习笔记·StringBuffer类
- <九度 OJ>题目1019:简单计算器
- HashMap元素遍历的顺序问题
- JavaScriptCore 使用