FLASCC Technical Point Record

Source: Internet
Author: User

[Properties to be tested]

One, C interface export related

1, overloaded functions.

2, virtual function.

Second, memory-related

1, as directly to C allocated memory write data.

2, c write data directly to as object.

Third, C access as

1. Accessing basic type variables in as

2. Accessing complex type variables in as

3. Accessing function objects in as

Iv. as Access C

V. Multithreading (Pthread and worker)

Adobe's official notes for Pthread:

Http://www.adobe.com/devnet/games/articles/pthreads-flascc.html

One of the words is important:

FLASCC Pthreads is implemented using ActionScript workers. Creation of a Pthread causes the Creation of a 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 is shared between Pthreads. Therefore, C data-including pointers to scalars, function pointers, and so on-can be safely gkfx between Pthreads. However, AS3 values is not shared between workers and therefore is not generally shareable between Pthreads.

FLASCC Technical Point Record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.