首页 > TAG信息列表 > XThread

基于libevent线程池实现

XThreadPool.h #ifndef XTHREADPOOL_H #define XTHREADPOOL_H #include <vector> class XThread; class XTask; class XThreadPool { private: int threadCount = 0; // 线程数量 int lastThread = -1; std::vector<XThread *> threads; public: //

makefile快速入门

前言   在linux上开发c/c++代码,基本都会使用make和makefile作为编译工具。我们也可以选择cmake或qmake来代替,不过它们只负责生成makefile,最终用来进行编译的依然是makefile。如果你也是c/c++开发人员,无论你使用什么工具,makefile都是必须掌握的。特别是当你打算编写开源项目的时