Skip to content

Instantly share code, notes, and snippets.

@wush978
wush978 / thread_pool.cpp
Created August 9, 2013 01:30
c++ thread pool example(linux only)
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/move/move.hpp>
#include <iostream>
#include <unistd.h>
namespace asio = boost::asio;