1 typedef int semaphore; 2 semaphore count_mutex = 1; 3 semaphore data_mutex = 1; 4 int count = 0; 5 6 void reader(){ 7 while(TRUE){ 8 down(&count_mut ...
分类:
其他好文 时间:
2021-04-20 15:08:36
阅读次数:
0
边界填充 涉及到的函数: copyMakeBorder(src, top, bottom, left, right, borderType, dst=None, value=None) 其中,填充类型borderType主要的有一下四种类型: BORDER_CONSTANT :可以用指定的像素去填充 ...
分类:
其他好文 时间:
2021-04-20 14:56:18
阅读次数:
0
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.10.0.tar.bz2 tar -xf freetype-2.10.0.tar.bz2 cd freetype-2.10.0 ./configure --prefi ...
分类:
系统相关 时间:
2021-04-20 14:36:46
阅读次数:
0
写一个符合 Promise A+ 规范的 Promise 类型定义 // MyPromise.ts type resType = (value?: any) => void; type rejType = (reason?: any) => void; type executorType = (re ...
分类:
其他好文 时间:
2021-04-20 14:26:37
阅读次数:
0
golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso ...
分类:
Web程序 时间:
2021-04-20 14:21:08
阅读次数:
0
IP、MASK、GW、DNS相关的配置文件: /etc/sysconfig/network-scripts/ifcfg-IFACE 说明参考 /usr/share/doc/initcripts-*/sysconfig.txt 常用配置 设置 说明 TYPE 接口类型;常见有的Ethernet, Br ...
分类:
其他好文 时间:
2021-04-20 14:18:37
阅读次数:
0
前端 html <!-- 搜索 --> <div style="margin-top: 15px"> <el-select style="width: 150px" v-model="select" placeholder="请选择"> <el-option label="歌手列表" value=" ...
分类:
编程语言 时间:
2021-04-20 14:07:21
阅读次数:
0
###1、@Api:用在请求的类上,说明该类的作用 @Api:用在请求的类上,说明该类的作用 tags="说明该类的作用" value="该参数没什么意义,所以不需要配置" ###2、@ApiOperation:用在请求的方法上,说明方法的作用 @ApiOperation:"用在请求的方法上,说明方 ...
分类:
其他好文 时间:
2021-04-20 14:04:21
阅读次数:
0
User Area from:http://ericnode.info/post/how_to_determine_emmc_size/ 计算方法其实已经在规范中给出了,参考eMMC 5.0 spec里的段落。首先是: 7.3.12 C_SIZE [73:62] The C_SIZE paramet ...
分类:
其他好文 时间:
2021-04-19 16:00:57
阅读次数:
0
前好几天学了Map集合,简单总结下重点: Map集合中有各种重要的方法,包括增加,删除元素,获取集合的大小,清空集合,对Map集合进行遍历:1.get(k) 返回为value 2.将Map集合转换成Set集合,然后对Set集合进行遍历(即利用迭代器的方式:其中分别包含for()+get()方法或者f ...
分类:
其他好文 时间:
2021-04-19 15:57:16
阅读次数:
0