随笔分类 -  ACE

ACE handle_timeout 事件重入
摘要:当多线程运行反应器事件时, 注意handle_timeout会重入,单独线程不存在下列问题!1. 一个timer事件// test_ace_timer.cpp : Defines the entry point for the console application.//#include "stda... 阅读全文

posted @ 2014-08-29 16:25 偏爱省略号 阅读(1606) 评论(0) 推荐(0)

ACE_DEBUG buffer
摘要:ACE中输出日志时,发现太长会被截断。1.测试char buf[5000] = {0};ACE_OS::memset(buf,'a', 4999);ACE_DEBUG((LM_INFO, ACE_TEXT("##@@##[ %s ]##@@##\n"), buf));结... 阅读全文

posted @ 2014-04-18 10:02 偏爱省略号 阅读(473) 评论(0) 推荐(0)

导航