上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: 编译问题 1)Fail to find brpc 解法:./CMakeLists.txt,7行添加 set(BRPC_INCLUDE_PATH "/root/brpc/build/output/include/") set(BRPC_LIB "/root/brpc/build/output/lib/ 阅读全文
posted @ 2023-02-20 22:32 stupidstan2019 阅读(79) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows 第二个回答 阅读全文
posted @ 2023-02-20 21:58 stupidstan2019 阅读(98) 评论(0) 推荐(0)
摘要: 【问题】 2020的project,goland有gopath路径问题 参考https://stackoverflow.com/questions/68138664/golang-unexpected-directory-layout-even-with-right-directory-setup 阅读全文
posted @ 2023-01-31 22:46 stupidstan2019 阅读(230) 评论(0) 推荐(0)
摘要: 【参考】 https://www.cnblogs.com/heimianshusheng/p/13530672.html 阅读全文
posted @ 2023-01-29 20:50 stupidstan2019 阅读(74) 评论(0) 推荐(0)
摘要: 【使用】 TurnSequencer<std::atomic> seq(1); seq.waitForTurn(1);#如果没等到,就hang住 seq.completeTurn(1); #唤醒等待turn=2的线程 【接口】 【等待】 内部函数 【唤醒】 内部函数 阅读全文
posted @ 2023-01-17 23:55 stupidstan2019 阅读(73) 评论(0) 推荐(0)
摘要: 【五种阻塞队列】 【先看LifoSem】 last in first out 信号量通知的queue 【调用栈】 ./fbcode_builder_getdeps-ZrootZfollyZbuildZfbcode_builder-root/build/folly/thread_pool_execut 阅读全文
posted @ 2023-01-04 21:54 stupidstan2019 阅读(184) 评论(4) 推荐(0)
摘要: 【参考】 https://zhuanlan.zhihu.com/p/55917869 【cache memory】 cpu和主存间存在三级缓存 L1, L2(单核独享) L3(多核共享) 【L1和L2如何保持一致】 mesi协议定义cacheline四个状态 modified,只缓存在该cpu的缓存 阅读全文
posted @ 2023-01-04 19:45 stupidstan2019 阅读(55) 评论(0) 推荐(0)
摘要: 【修改代码】 代码:ProducerConsumerQueueTest.cpp 编译二进制:producer_consumer_queue_test 文件路径:/tmp/fbcode_builder_getdeps-ZrootZfollyZbuildZfbcode_builder-root/buil 阅读全文
posted @ 2023-01-02 23:37 stupidstan2019 阅读(62) 评论(3) 推荐(0)
摘要: 【toolbox】 https://github.com/jinlmsft/raft.tla toolbox openspec Raft_Term_Not_Persisted.tla models界面运行unique_leader https://www.youtube.com/watch?v=6K 阅读全文
posted @ 2023-01-02 22:34 stupidstan2019 阅读(80) 评论(0) 推荐(0)
摘要: 【命令】1)下载依赖./build/fbcode_builder/getdeps.py install-system-deps --recursive2)编译python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build 阅读全文
posted @ 2023-01-02 21:57 stupidstan2019 阅读(303) 评论(1) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页