⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 barrier.hpp

📁 CGAL is a collaborative effort of several sites in Europe and Israel. The goal is to make the most i
💻 HPP
字号:
// Copyright (C) 2002-2003// David Moore, William E. Kempf//// Permission to use, copy, modify, distribute and sell this software// and its documentation for any purpose is hereby granted without fee,// provided that the above copyright notice appear in all copies and// that both that copyright notice and this permission notice appear// in supporting documentation.  William E. Kempf makes no representations// about the suitability of this software for any purpose.// It is provided "as is" without express or implied warranty.#ifndef BOOST_BARRIER_JDM030602_HPP#define BOOST_BARRIER_JDM030602_HPP#include <boost/thread/detail/config.hpp>#include <boost/thread/mutex.hpp>#include <boost/thread/condition.hpp>namespace boost {class BOOST_THREAD_DECL barrier{public:    barrier(unsigned int count);    ~barrier();    bool wait();private:    mutex m_mutex;    condition m_cond;    unsigned int m_threshold;    unsigned int m_count;    unsigned int m_generation;};}   // namespace boost#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -