Advertisement

Linux多线程C++库:liblmp_tool -- 线程类Thread

阅读量:

Linux环境下支持多线程编程的工具库liblmp_tool github: https://github.com/Dwyane05/liblmp_tool

该类实现了底层多线程创建功能;支持线程同步机制及互斥访问控制

头文件:

/*

  • Use of this source code is governed by a BSD-style license
  • that can be found in the License file.
  • Thread.h
  • Created on: May 30, 2019
  • Author: cuiyongfei
    */

#ifndef LMP_TOOL_THREAD_H
#define LMP_TOOL_THREAD_H

#include "Atomic.h"
#include "CountDownLatch.h"
#include "Common.h"

#include
#include
#include <pthread.h>

namespace lmp_tool
{

class Thread : noncopyable
{
public:
typedef std::function<void ()> Thre

全部评论 (0)

还没有任何评论哟~