一. 互斥量 (一)Mutex系列类 1. std::mutex:独占的互斥量,不能递归使用。 2. std::recursive_mutex:递归互斥量。允许同一线程多次获得该互斥锁,可以用来解决同一线程需要多次获取互斥量时死锁的问题。 3. std::time_mutex和std::recurs ...
分类:
其他好文 时间:
2019-11-17 15:05:37
阅读次数:
55
Bydefault,rmdoesnotremovedirectories.Usethe--recursive(-ror-R)optiontoremoveeachlisteddirectory,too,alongwithallofitscontents.Toremoveafilewhosenamestartswitha‘-‘,forexample‘-foo‘,useoneofthesecommand
分类:
其他好文 时间:
2019-10-29 18:13:09
阅读次数:
87
题目链接:https://vjudge.net/problem/HDU-5950 ; 以下是本人题解,有问题的同学欢迎留言哦! ...
分类:
编程语言 时间:
2019-10-27 18:26:19
阅读次数:
86
使用场景 当项目越来越庞大之后,不可避免的要拆分成多个子模块,我们希望各个子模块有独立的版本管理,并且由专门的人去维护,这时候我们就要用到git的submodule功能。 常用命令 git clone <repository> --recursive 递归的方式克隆整个项目 git submodul ...
分类:
其他好文 时间:
2019-10-26 10:30:21
阅读次数:
102
方法汇总: 1、 array_reduce函数法 2、 array_walk_recursive函数法 3、 array_map函数法 内容详解: ...
分类:
编程语言 时间:
2019-10-25 13:20:02
阅读次数:
110
[A. Thickest Burger] 签到。 [B. Relative atomic mass] 签到 [C. Recursive sequence] $$f[i] = f[i - 1] + 2 * f[i - 2] + i ^ 4$$ $$\left[ \begin{matrix} 1 & 2 ...
分类:
其他好文 时间:
2019-10-17 01:15:12
阅读次数:
96
碰到Oracle 在windows服务器上,asp.net core web api 在linux的docker中 碰到问题说ORA-00604: error occurred at recursive SQL level 1ORA-01882: timezone region not found ...
分类:
其他好文 时间:
2019-10-13 23:24:15
阅读次数:
216
bsObj.findAll(tagName, tagAttributes) .get_text() 会把这些超链接、段落和标签都清除掉, 只剩下一串不带标签的文字。 findAll(tag, attributes, recursive, text, limit, keywords) find(tag ...
分类:
Web程序 时间:
2019-10-10 12:52:17
阅读次数:
112
1 ** 2 * 二叉树先序遍历非递归 3 * @param root 4 */ 5 public void preOrder_no_recursive(TreeNode root){ 6 if(root == null) return; 7 8 Stack<TreeNode> stack = ne... ...
分类:
其他好文 时间:
2019-09-26 16:05:38
阅读次数:
83
本题抽象一下就是如何deep copy图的问题。由于random指针的存在,导致我们按顺序copy的时候,copy的random指针指向的node可能还没有生成。如何解决这个问题是本题的关键。 Recursive 如果递归来做,上述问题很好解决,没有生成的节点递归生成即可。 但是我们需要用一个has ...
分类:
其他好文 时间:
2019-09-25 12:43:48
阅读次数:
76