请教带ACE_Time_Value参数的ORB->run()系列函数的运行方式问题

5 views
Skip to first unread message

cherokee

unread,
Dec 12, 2008, 3:31:47 AM12/12/08
to ace-...@googlegroups.com
ACE_Time_Value相关类型参数的run(), work_pending(), perform_work()这几个函数感到困惑,望指点一下。

Stone Jiang

unread,
Dec 12, 2008, 3:41:41 AM12/12/08
to ace-...@googlegroups.com
带时间作参数,并且时间不为0,表示阻塞设定的时长。一般last_error会设为ETIMEOUT或EWOULDBLOCK
 


 
2008/12/12 cherokee <tec...@gmail.com>
ACE_Time_Value相关类型参数的run(), work_pending(), perform_work()这几个函数感到困惑,望指点一下。

cherokee

unread,
Dec 12, 2008, 4:57:28 AM12/12/08
to ace-...@googlegroups.com
感谢stone。
我再具体些,下面理解是否正确:
1. run(time)以阻塞方式run time时间后返回;
2. work_pending(time)最长阻塞time时间判断是否需要处理work,若需要处理则立即返回true,若没有需要处理的工作则等待time时间后返回false;
3. perform_work(time)以阻塞方式处理工作最长time时间,若在time时间内未能完成工作也会在到达time时长后返回;

2008/12/12 Stone Jiang <200...@gmail.com>
Reply all
Reply to author
Forward
0 new messages