首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > C++面向对象封装pthreads

C++面向对象封装pthreads

  • 资源大小:109.68 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: pthreads 封装 对象 面向

资 源 简 介

Lightweight object-oriented C++ wrapper for pthreads. This is not an abstraction layer for writing multithreaded apps, based on pthreads. Other libs are quite good at it (Boost.thread to name some). This library just allows using pthreads compatible implementation in C++ native manner, using OOP, templates, namespaces, and so on. The understanding of pthreads is still essential. When creating this library, the following goals were set: 1) Portability - uses only standard features of C++ and pthreads 2) User-friendliness - the program should be esaily readable (no pointers and cryptic functions) 3) Takes care of resource deallocation (RAII and other) 4) Lightweight - resides in headers (hopefully one) only. Add it to the project, and you are done!
VIP VIP
0.179678s