标签:
[待测试特性]
一、C接口导出相关
1、重载函数。
2、虚函数。
二、内存相关
1、as直接往c分配的内存写数据。
2、c直接往as对象写数据。
三、C访问AS
1、访问as中的基本类型变量
2、访问as中的复杂类型变量
3、访问as中的function对象
四、AS访问C
五、多线程(pthread与worker)
adobe官方对于pthread的说明:
http://www.adobe.com/devnet/games/articles/pthreads-flascc.html
其中有一段话很重要:
Flascc Pthreads are implemented using ActionScript workers. Creation of a Pthread causes the creation of an AS3 Worker object on which the Pthread start_routine
runs. Workers created for Pthread execution automatically share C memory with other Pthreads including the main Pthread. Global and static variables are shared between Pthreads. Therefore, C data—including pointers to scalars, function pointers, and so on—can be safely shared between Pthreads. However, AS3 values are not shared between workers and therefore are not generally shareable between Pthreads.
标签:
原文地址:http://www.cnblogs.com/zilongblog/p/4663616.html