Coding
sunashe
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
性能对比pthread mutex/spin lock/spin lock delay
代码代码如下 main.cc//// Created by 孙川 on 2018/8/13.//#include <iostream>#include <pthread.h>#include "spin.h"using std::cout;using std::endl;pthread_mute原创 2018-08-13 20:46:11 · 705 阅读 · 0 评论 -
2014 Commands out of sync; you can't run this command now
错误简介在使用mysql_query进行查询操作时,报错如下:2014 Commands out of sync; you can't run this command now错误原因第一次调用mysql_query/mysql_real_query之后,没有进行mysql_store_result操作,导致的此错误。如下代码可以复现:#includ...原创 2018-08-29 16:19:52 · 1941 阅读 · 0 评论
分享