readme

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· 代码 · 共 40 行

TXT
40
字号
//README,v 1.1 2003/07/16 04:21:31 yamuna Exp

Case
----

This is a test for forking new DTs from existing DTs using
Current::spawn (). A local DT is created with
Current::begin_scheduling_segment() and
Current::end_scheduling_segment (). A new DT is spawned within the
context of the DT created. The Thread_Action::do () method is called
when the spawned DT is activated. This method provides a point of
entry for the spawned DT.

This test also shows that the DT spawn should be made only within the
context of another DT.


To Run
-------

./test

Typical Output
--------------

Invoking DT spawn without calling begin_scheduling_segment...

(7141|1024) EXCEPTION, Spawn should be in the context of a Scheduling Segment
system exception, ID 'IDL:omg.org/CORBA/BAD_INV_ORDER:1.0'
TAO exception, minor code = 0 (unknown location; unspecified errno), completed = NO

Start - Scheduling Segment...
The Current DT Guid is 1
Spawning a new DT...
End - Scheduling Segment 1
Test_Thread_Action::do Harry Potter
The spawned DT Guid is 2
Segment Names for DT 2:
Chamber of Secrets

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?