Fork me on GitHub

09 2017 档案

摘要:设置线程优先级的函数: int pthread_setschedparam(pthread_t target_thread, int policy, const struct sched_param *param) 它主要用于设置线程的调用策略和优先级。 参数说明: 1. target_thread 阅读全文
posted @ 2017-09-14 15:32 Mr.YF 阅读(21346) 评论(0) 推荐(0)
摘要:非阻塞模式 #include "RpcServiceHandler.h" #include <thrift/concurrency/ThreadManager.h> #include <thrift/concurrency/PosixThreadFactory.h> #include <thrift 阅读全文
posted @ 2017-09-14 11:13 Mr.YF 阅读(3470) 评论(0) 推荐(0)