摘要:
锁类型 相关函数原型: int pthread_mutexattr_settype (pthread_mutexattr_t *attr, int kind); int pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int * 阅读全文
摘要:
当一次业务处理计算服务和数据库交互较多时,将可能有大量时间浪费在数据传输上,尤其对于计算服务和数据库跨机房或跨地区部署时,浪费的时间会极其可观。为了减少时间浪费可以使用MySQL提供的SQL打包功能。 先来认识两个标记:CLIENT_MULTI_RESULTS:Tell the server tha 阅读全文
摘要:
现在有3个模块:main、service、base,main依赖service的service.h、service依赖base的base.h,怎么写CMakeList.txt避免main直接耦合base - main - service - base base模块 - base.h - base.c 阅读全文