码迷,mamicode.com
首页 > 其他好文 > 详细

flasCC技术点记录

时间:2015-07-21 12:10:07      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

[待测试特性]

一、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.

flasCC技术点记录

标签:

原文地址:http://www.cnblogs.com/zilongblog/p/4663616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!