TinyThreadPP-1.1-src

所属分类:进程与线程
开发工具:C/C++
文件大小:122KB
下载次数:7
上传日期:2013-08-03 13:12:05
上 传 者qiankun2008
说明:  一个封装很好的多线程底层库,可以跨平台的,给大家分享一下;
(A package good multithreaded underlying libraries, cross-platform, to share with you )

文件列表:
TinyThread++-1.1 (0, 2012-05-08)
TinyThread++-1.1\source (0, 2012-05-08)
TinyThread++-1.1\source\tinythread.h (21220, 2012-05-08)
TinyThread++-1.1\source\tinythread.cpp (8506, 2012-05-08)
TinyThread++-1.1\source\fast_mutex.h (6940, 2012-05-08)
TinyThread++-1.1\doc (0, 2012-05-08)
TinyThread++-1.1\doc\Doxyfile (63436, 2012-05-08)
TinyThread++-1.1\doc\html (0, 2012-05-08)
TinyThread++-1.1\doc\html\globals.html (2447, 2012-05-08)
TinyThread++-1.1\doc\html\namespacetthread.html (5896, 2012-05-08)
TinyThread++-1.1\doc\html\doxygen.css (12350, 2012-05-08)
TinyThread++-1.1\doc\html\nav_h.png (97, 2012-05-08)
TinyThread++-1.1\doc\html\closed.png (126, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1condition__variable.html (9242, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1mutex-members.html (3251, 2012-05-08)
TinyThread++-1.1\doc\html\index.html (3399, 2012-05-08)
TinyThread++-1.1\doc\html\doxygen.png (3942, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1recursive__mutex.html (7757, 2012-05-08)
TinyThread++-1.1\doc\html\tab_a.png (140, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1thread.html (14363, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1recursive__mutex-members.html (3483, 2012-05-08)
TinyThread++-1.1\doc\html\globals_defs.html (2346, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1fast__mutex-members.html (3373, 2012-05-08)
TinyThread++-1.1\doc\html\bc_s.png (677, 2012-05-08)
TinyThread++-1.1\doc\html\tab_h.png (192, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1thread_1_1id.html (4231, 2012-05-08)
TinyThread++-1.1\doc\html\nav_f.png (159, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1lock__guard-members.html (2714, 2012-05-08)
TinyThread++-1.1\doc\html\namespaces.html (2600, 2012-05-08)
TinyThread++-1.1\doc\html\annotated.html (3292, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1ratio.html (2927, 2012-05-08)
TinyThread++-1.1\doc\html\namespacemembers.html (3290, 2012-05-08)
TinyThread++-1.1\doc\html\tabs.css (1095, 2012-05-08)
TinyThread++-1.1\doc\html\open.png (118, 2012-05-08)
TinyThread++-1.1\doc\html\classes.html (5338, 2012-05-08)
TinyThread++-1.1\doc\html\tinythread_8h_source.html (54133, 2012-05-08)
TinyThread++-1.1\doc\html\functions.html (7936, 2012-05-08)
TinyThread++-1.1\doc\html\classtthread_1_1mutex.html (7643, 2012-05-08)
TinyThread++-1.1\doc\html\files.html (2158, 2012-05-08)
... ...

TinyThread++ v1.1 ================= http://tinythreadpp.bitsnbites.eu About ----- TinyThread++ is a minimalist, portable, threading library for C++, intended to make it easy to create multi threaded C++ applications. The library is closesly modeled after the C++11 standard, but only a subset is implemented at the moment. See the documentation in the doc/html directory for more information. Using TinyThread++ ------------------ To use TinyThread++ in your own project, just add tinythread.cpp and tinythread.h to your project. In your own code, do: #include using namespace tthread; If you wish to use the fast_mutex class, inlude fast_mutex.h: #include Building the test programs -------------------------- From the test folder, issue one of the following commands: Linux, Mac OS X, OpenSolaris etc: make (you may need to use gmake on some systems) Windows/MinGW: mingw32-make Windows/MS Visual Studio: nmake /f Makefile.msvc History ------- v1.1 - 2012.05.07 - Added thread::detach(). v1.0 - 2010.10.01 - First non-beta release. - Made mutex non-recursive (according to spec), and added recursive_mutex. - General class, code & documentation improvements. - Added a Makefile for MS Visual Studio. v0.9 - 2010.08.10 - Added preliminary support for this_thread::sleep_for(). v0.8 - 2010.07.02 - Switched from CreateThread() to _beginthreadex() for Win32 (should fix tiny memory leaks). - Better standards compliance and some code cleanup. v0.7 - 2010.05.17 - Added this_thread::yield(). - Replaced the non-standard number_of_processors() function with thread::hardware_concurrency(), which is part of the C++0x draft. - The thread::id() class is now more standards compliant (correct namespace and comparison operators). v0.6 - 2010.04.28 - Added a fast_mutex class (in fast_mutex.h). - Made the test.cpp application compile under Mac OS X and MinGW/g++ 3.x. v0.5 - 2010.03.31 - Added the thread_local keyword (support for thread-local storage). - Added a test application to test the API (test.cpp). - Improved the Doxygen documentation. v0.4 - 2010.03.27 - Added thread::get_id() and this_thread::get_id(). - Changed the namespace name from tinythread to tthread. v0.3 - 2010.03.24 - Fixed a compiler error for fractal.cpp under MS Visual C++. - Added colors to the fractal generator. v0.2 - 2010.03.23 - Better C++0x conformance. - Better documentation. - New classes: - lock_guard - New member functions: - thread::joinable() - thread::native_handle() - mutex::try_lock() - Added a multi threaded fractal generator test application. v0.1 - 2010.03.21 - Initial release. License ------- Copyright (c) 2010-2012 Marcus Geelnard This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.

近期下载者

相关文件


收藏者