07 2022 档案
摘要:参考: C++ Concurrency In Action 2rd 第7章 https://en.wikipedia.org/wiki/ABA_problem http://www.cs.cmu.edu/afs/cs/academic/class/15418-f18/www/lectures/17_
阅读全文
摘要:参考: C++ Concurrency In Action 2rd 第5章 https://stackoverflow.com/questions/14861822/acquire-release-versus-sequentially-consistent-memory-order https:/
阅读全文
摘要:参考: C++ Concurrency In Action 2rd 第6章 实验环境: system: centos 8.1 / arch: x86_64 / kernel: 4.18.0 / g++: 8.5.0 1. 概述 下文主要以异步队列为例进行讲解。 注意,为了便于理解,所以下文的代码与原
阅读全文
摘要:参考: https://gstreamer.freedesktop.org/documentation/plugin-development/index.html?gi-language=c gstreamer tee plugin, flvdemux plugin, rtpbasepayload
阅读全文
摘要:环境:centos8 x86_64 内核:4.18.0 1. close() 与 shutdown() 我们知道,tcp 有 4 次挥手过程,对于主动端来说: 发送 fin 通知被动端连接即将关闭 等待被动端发送 fin 过来以彻底结束连接 如果进程通过调用 close() 来结束连接,会让 soc
阅读全文