12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

激 活 对 象C++:deactivate_object() 来 去 激 活 一 个 对 象 。 当 一 个 对 象 被 去 激 活 后 , 并 不 意 味 着 该对 象 会 永 远 消 失 。 它 随 后 始 终 都 可 以 被 重 新 激 活 。// DeActivatorThreadclass DeActivatorThread: public VISThread {private :PortableServer::ObjectId _oid;PortableServer::POA_ptr _poa;public :virtual ~DeActivatorThread(){}// 构 建 器DeActivatorThread(const PortableServer::ObjectId& oid,PortableServer::POA_ptr poa ): _oid(oid), _poa(poa) {// 启 动 线 程run();}// 实 现 begin() 回 调void begin() {// 休 眠 15sVISPortable::vsleep(15);CORBA::String_var s = PortableServer::ObjectId_to_string (_oid);// 去 激 活 对 象cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!