C++ Concurrency in Action 读书笔记一:thread的管理

摘要: 为避免混淆,用 thread 表示 及其对象实例,用 线程 表示操作系统概念下的线程 Chapter 2 的管理 2.1 的创建(构造函数) a. 默认构造函数 创建一个placeholder,不和任何线程关联。其使用场景如定义一个 数组。可以在之后通过 来赋予值以和线程关联 b. Move构造函数 阅读全文
posted @ 2019-08-08 23:41 westwindrest 阅读(356) 评论(0) 推荐(0) 编辑

C 预处理指令

摘要: 0. Overview C的预处理指令格式为#name,均以#开头,#和指令名之间不可有空白字符,#前可以有空字符,但为增强可读性,一般应从第一列开始。 #name不能由宏展开得来,name也不能由宏展开得来,如: // Wrong 1 #define INC #include INC <stdio 阅读全文
posted @ 2019-06-23 00:46 westwindrest 阅读(1819) 评论(0) 推荐(0) 编辑

C++正则表达式 <regex>

摘要: 一 简介 概括而言,使用正则表达式处理字符串的流程包括: 用正则表达式定义要匹配的字符串的规则, 然后对目标字符串进行匹配, 最后对匹配到的结果进行操作。 C++ 的 regex 库提供了用于表示正则表达式和匹配结果的基本类型,以及搜寻、匹配、替换等函数。 二 基本类型 2.1 basic_rege 阅读全文
posted @ 2019-06-23 00:41 westwindrest 阅读(20103) 评论(0) 推荐(4) 编辑

CMake使用Boost

摘要: 来源: "StackOverflow" 阅读全文
posted @ 2018-11-13 13:37 westwindrest 阅读(5733) 评论(0) 推荐(1) 编辑

Clang开发注意事项

摘要: Clang tools need their builtin headers and search for them the same way Clang does. Thus, the default location to look for builtin headers is in a pat 阅读全文
posted @ 2017-10-15 11:21 westwindrest 阅读(189) 评论(0) 推荐(0) 编辑

非系统默认路径下的编译、链接、运行事宜

摘要: 非系统默认路径下的编译、链接、运行事宜 阅读全文
posted @ 2017-07-04 20:18 westwindrest 阅读(217) 评论(0) 推荐(0) 编辑

C++ pieces

摘要: 学习过程中整理的一些C++知识点 阅读全文
posted @ 2017-07-03 11:29 westwindrest 阅读(169) 评论(0) 推荐(0) 编辑

cmake:针对某些依赖 openssl-1.0 而机器上还有其他版本的 openssl

摘要: 指定下列变量: DOPENSSL_INCLUDE_DIR:指向 openssl 1.0 的 include 目录 DOPENSSL_SSL_LIBRARIES:指向 openssl 1.0 的 lib 目录中的 libssl.so DOPENSSL_CRYPTO_LIBRARIES:指向 opens 阅读全文
posted @ 2017-06-17 11:12 westwindrest 阅读(3543) 评论(0) 推荐(0) 编辑

C++ 学习笔记

摘要: C++ 学习笔记 阅读全文
posted @ 2017-03-31 10:35 westwindrest 阅读(299) 评论(0) 推荐(0) 编辑

Clang FrontendActions

摘要: Clang FrontendAction 学习笔记 阅读全文
posted @ 2017-03-26 08:36 westwindrest 阅读(462) 评论(0) 推荐(0) 编辑