boost 1.56.0 编译及使用 来源: http://www.cnblogs.com/zhcncn/p/3950477.html boost的编译和使用,经过搜集资料和总结,记录成文。感谢文后所列参考资料的作者。 1 下载 地址:http://sourceforge.net/projects/ ...
分类:
其他好文 时间:
2017-12-21 11:58:23
阅读次数:
144
以websocketpp的example为基础, #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> #include <iostream> #include <stdio.h> #inclu ...
分类:
系统相关 时间:
2017-12-19 15:27:35
阅读次数:
261
Source Install MySQL 5.7.20mysql5.7版本之后要用boost1.59http://www.boost.org/yum -y install gcc gcc-c++ ncurses ncurses-devel cmake bison wgetwget https://sourceforge.net/projects/boost/files/boost/1.59.0/b
分类:
数据库 时间:
2017-12-19 15:07:53
阅读次数:
201
本文转自:http://senlinzhan.github.io/2017/09/17/boost-asio/ Boost.Asio 有两种支持多线程的方式,第一种方式比较简单:在多线程的场景下,每个线程都持有一个io_service,并且每个线程都调用各自的io_service的run()方法。 ...
分类:
编程语言 时间:
2017-12-18 12:18:38
阅读次数:
330
本文转自:http://blog.csdn.net/byxdaz/article/details/71088812 一、io_service的作用 io_servie 实现了一个任务队列,这里的任务就是void(void)的函数。Io_servie最常用的两个接口是post和run,post向任务队 ...
分类:
其他好文 时间:
2017-12-16 11:08:35
阅读次数:
276
1、背景 最近在看一个大佬写的服务器代码的时候,发现他写的单例模式代码很有趣,开始看的时候没看懂,后面研究了一把,发现这个代码其实就是boost里面的一种单例模式,虽然boost里面有很多单例模式,我们在这里就先研究我看到的这种。 我们来看最简单的单例模式: 这是最简单的版本,在单线程下(或者是C+ ...
分类:
其他好文 时间:
2017-12-15 22:32:50
阅读次数:
184
Operation system: CentOS 7.3 Torque PBS: torque-6.1.1.1.tar hostname: rfmlab user name: cfd01 1. Installation $ tar -zxvf torque-6.1.1.1.tar $ yum ins ...
分类:
其他好文 时间:
2017-12-15 15:08:19
阅读次数:
466
1. 使用动态库时,要定义 BOOST_LOG_DYN_LINK 或者 BOOST_ALL_DYN_LINK 否则会出现如下错误: 2. 使用静态库时,注意 libboost_log_setup.a和libboost_log.a 两个库的顺序, 正确的顺序是 libboost_log_setup.a ...
分类:
其他好文 时间:
2017-12-12 21:30:41
阅读次数:
229
Boost as the tech of shoes nowadays, it is also mark as comfortable shoes . Why it is popular in the world ? First , we can see whats boost ? TPU (the ...
分类:
其他好文 时间:
2017-12-09 12:08:35
阅读次数:
226
安装环境: linux版本: ubuntu-16.04.3-desktop-amd64 mysql版本:mysql-boost-5.7.20.tar.gz 下载地址:https://dev.mysql.com/downloads/mysql/ mysql安装前的准备工作: 1,安装cmake工具 s ...
分类:
数据库 时间:
2017-12-06 16:07:11
阅读次数:
164