线程间同步

线程间同步

如果多个任务间有相互依赖关系,那么任务或者线程之间需要同步。C++ 标准库中提供了条件变量和 feature 来帮助我们处理这种场景

一、条件变量

#include <condition_variable> 中有两个条件变量的实现: std::condition_variablestd::condition_variable_any

  • std::condition_variable 仅限于和 std::mutex 一起工作。std::condition_variable_any 更加灵活,可以组合的条件比较广泛。

查看更多

undefined

如何用 wireshark 抓包 TLS 封包
https://segmentfault.com/a/1190000018746027

PCAP 报文中图片视频的自动化还原方法
村中少年
https://gitbook.cn/books/5b1ce272ee7ef56301f735bf/index.html

X.509数字证书的结构与解析
https://blog.csdn.net/xy010902100449/article/details/52145009

常见的数字证书格式与协议简介
https://www.chinassl.net/?f=faq&a=view&r=509#:~:text=%E6%95%B0%E5%AD%97%E8%AF%81%E4%B9%A6%E4%B8%BB%E8%A6%81%E7%9A%84%E6%96%87%E4%BB%B6,CRL%E3%80%81OCSP%E3%80%81SCEP%E7%AD%89%E3%80%82

使用Python Openssl库解析X509证书信息
https://blog.csdn.net/qq874455953/article/details/85041415
https://blog.csdn.net/xuq09/article/details/87707583

查看更多

undefined

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!--类似于java的包名,通常时公司或者组织的名称-->
<groupId>groupId</groupId>
<!--类似于java的类名,通常是项目名称-->
<artifactId>LearnJava</artifactId>
<!--版本号 SNAPSHOT表示非release-->
<version>1.0-SNAPSHOT</version>

<!--依赖,其中的groupId、artifactId、version和包名的定义一致-->
<dependencies>
<dependency>
<groupId>com.tencent.tccm</groupId>
<artifactId>tccm-client-java</artifactId>
<!-- 这里引用的是snapshot版本的jar包,生产环境要引用release版本-->
<version>1.0-SNAPSHOT</version>
<!--表示该jar包在那个阶段使用-->
<scope>test</scope>
</dependency>
</dependencies>
</project>

查看更多