Thread Safety in the Standard C++ Library(From MSDN)
来源:互联网 发布:淘宝女鞋分类 编辑:程序博客网 时间:2024/05/16 19:02
When
Container Classes (vector, deque, list, queue, stack , priority_queue, valarray, map, multimap, set, multiset, basic_string, bitset) and complex
For reads to the same object, the object is thread safe for reading:
- From one thread at a time when no writers on other threads.
- From many threads at a time when no writers on other threads.
For writes to the same object, the object is thread safe for writing from one thread when no readers on other threads
For reads to different objects of the same class, the object is thread safe for reading:
- From one thread at a time.
- From one thread at a time when no writers on other threads.
- From many threads at a time.
- From many threads at a time when no writers on other threads.
For writes to different objects of the same class, the object is thread safe for writing:
- From one thread when no readers on other threads.
- From many threads.
iostream Classes
Note that reading from a stream buffer is not considered to be a read operation. It should be considered as a write operation, because this changes the state of the class.
For reads to the same object, the object is thread safe for reading:
- From one thread at a time when no writers on other threads.
- From many threads at a time when no writers on other threads.
For writes to the same object, , the object is thread safe for writing:
- From one thread when no readers on other threads.
- From many threads (when accesses are limited to stream buffers).
For reads to different objects of the same class, , the object is thread safe for reading:
- From one thread at a time.
- From one thread at a time when no writers on other threads.
- From many threads at a time.
- From many threads at a time when no writers on other threads.
For writes to different objects of the same class, the object is thread safe for writing:
- From one thread when no readers on other threads
- From many threads
- Thread Safety in the Standard C++ Library(From MSDN)
- The Standard C Library
- Porting in c standard library
- The Standard Librarian: Sorting in the Standard Library
- use the Standard C++ Library in symbian
- the C standard library 学习笔记
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard library
- Question 6: Which of the following are container adapters in the STL (Standard Template Library) in C++?
- The Python Standard Library
- [Python]The import utilities in Python Standard Library
- iOS Multithreading: Thread Safety in iOS Applications
- Thread Safety Using the Volatile Keyword
- About the thread safety on STL
- Thread-safety with the Java final keyword
- Thread-safety with the Java final keyword
- Using the WebBrowser Control from C/C++ (From MSDN)
- C Standard Library
- C Standard Library
- 判断本机IP的DOS命令
- hibernate的多表联合查询
- hibernate多表关联
- [转帖]JAVA中几个易混淆关键词的正确理解
- NetBeans VS Eclipse,新一轮的争端
- Thread Safety in the Standard C++ Library(From MSDN)
- Symbian清除栈的深入分析
- Windows Mobile开发资源介绍
- TIOBE 2008年1月编程语言排行榜——Python 赢得 “2007 年度语言”
- Symbian应用程序运行框架
- java启动文件的制作
- 站在巨人的肩膀上
- NetBeans 6.0正式发布,众多特性前所未有 (451个读者)
- 第 3 章 歌颂吧!只为了树也要学ext