会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
靖意风
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
···
5
6
7
8
9
10
11
12
下一页
2019年8月7日
普通的patch 和使用git 打patch
参考博客: https://www.cnblogs.com/laoxiaobaiup/p/9455088.html https://blog.csdn.net/u012701023/article/details/82984026 1. diff -u oldfile newfile > 1.pat
Read More
posted @ 2019-08-07 20:52 靖意风
Views(823)
Comments(0)
Diggs(0)
2019年7月27日
c语言中的原子操作
参考文章:https://blog.csdn.net/yikai2009/article/details/8650221 1. 原子操作:原子操作指的是在执行过程中不会被别的代码所中断的操作.。分为 位 和 整型变量 两类原子操作。 typedef struct { volatile int cou
Read More
posted @ 2019-07-27 20:31 靖意风
Views(10653)
Comments(0)
Diggs(0)
读写锁的简单说明
#include <pthread.h> pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER;int pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t
Read More
posted @ 2019-07-27 11:00 靖意风
Views(858)
Comments(0)
Diggs(0)
2019年7月22日
source Insight 的常用设置
1. 去除^M 的显示 “Options->Preferences->Files”, 设置“Default File Format” to “UNIX(LF)” 2. SourceInsight 自动删除行位空格:Options->Files->Saving Files -> Remove extr
Read More
posted @ 2019-07-22 10:43 靖意风
Views(826)
Comments(0)
Diggs(0)
2019年7月20日
gdb 脚本 简单理解
1. gdb 脚本的语法简介: 摘录博客:https://blog.csdn.net/hejinjing_tom_com/article/details/50350865 1] # 为脚本注释命令 2] 赋值语句:set, 变量以$开始,以便区分是gdb还是调试程序变量。 变量可为全局或局部,视声明
Read More
posted @ 2019-07-20 15:50 靖意风
Views(2057)
Comments(0)
Diggs(0)
2019年7月9日
linux 中的errno 和 strerror(errno)
1. errno.h 中包含 errno 这个错误保存值 string.h 包含 strerror() 函数 ,它的原型 是 char *strerror(int errnum); 输入值应该是errno,返回值是 errno 对应的 错误提示字符串 stdio.h 包含perror() 函数,它的
Read More
posted @ 2019-07-09 08:37 靖意风
Views(3297)
Comments(0)
Diggs(0)
2019年7月8日
信号量和互斥锁的区别
参考博客:https://www.cnblogs.com/alinh/p/6905221.html“ 信号量与互斥锁的主要不同在于”灯”的概念,灯亮则意味着资源可用,灯灭则意味着不可用。 信号量 除了灯亮/灯灭这种二元灯以外,也可以采用大于1的灯数,以表示资源数大于1,这时可以称之为多元灯 而互斥锁
Read More
posted @ 2019-07-08 21:34 靖意风
Views(760)
Comments(0)
Diggs(0)
2019年7月6日
linux 无锁化编程
摘录博客: https://blog.csdn.net/hzhsan/article/details/25124901 内容如下: 1.__sync_fetch_and_add 函数系列 __sync_fetch_and_add系列一共有十二个函数,有加/减/与/或/异或/等函数的原子性操作函数。_
Read More
posted @ 2019-07-06 09:22 靖意风
Views(452)
Comments(0)
Diggs(0)
2019年5月1日
printf 打印字体和背景带颜色的输出的方法
摘录博客:https://blog.csdn.net/wangweiqiang1325/article/details/51787534 格式如下: printf("\033[属性设置;字背景颜色;字体颜色m 字符串 \033[0m" ); 例子:printf("\033[1;45;33m HELL
Read More
posted @ 2019-05-01 21:19 靖意风
Views(3148)
Comments(0)
Diggs(0)
在win10环境下安装Cygwin,可以GCC编译
参考博客:http://www.cnblogs.com/hchacha/p/7147603.html 1. 上述网址提供了setup-x86_64.exe,用于安装 Cygwin 2. 我在安装时,选择了如下网址去下载mirros: 3. 现在的cywin默认是最小化安装,但并不包括Gcc,如果要使
Read More
posted @ 2019-05-01 20:43 靖意风
Views(564)
Comments(0)
Diggs(0)
上一页
1
···
5
6
7
8
9
10
11
12
下一页
公告