flash - Singleton Conflicts and Order in AS3 -


if multiple instances of singleton trying update same property simultaneously, there conflicts? how as3 handle order?

flash single-threaded.. write order issue when becomes multi-threaded?

apologies awkward wording - i'm new oop , design patterns, , still grasping basic. 'scuse newbieness...

your question isn't worded - there lot of issues here, think understand you're saying.

it's best start definition of singleton - singleton class allows 1 object instance made. such, cannot have multiple singletons. referring multiple references singleton object, though, make sense.

as question - won't run 2 simultaneous updates, flash runs in single thread , sequential. thus, though as3 allows asynchronous events, 1 thing ever happens @ 1 time.

as such, there won't conflict - singleton property reflect whatever touched last, if updates millisecond apart.

hope made sense.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -