adobe-flash / crossbridge

Welcome to visit the homepage!
http://www.crossbridge.io
542 stars 194 forks source link

CAS for bool? #18

Open mbolt35 opened 10 years ago

mbolt35 commented 10 years ago

When attempting to use atomic operation: __sync_bool_compare_and_swap(...), I'm getting:

FlasCC does not support CAS on a non-32bit values..

My first assumption was that this meant "nothing over 32-bit," but alas I'm mistaken. I could simply use an int as a work around, but are you planning on adding support for this?

cbakgly commented 10 years ago

Maybe, but it's very second class thing in my loooong todo list. Sorry. Since the code now is there, it's appreciated if you would like to make it yourself and contribute it to code base. CAS is in posix/libcHack.cpp, have fun. And please feel free to post here also. Many of this project are real hackings that everyone is encouraged to give a try. :)

mbolt35 commented 10 years ago

Very cool! Thanks for the response and giving me the run down. I'll see what I can come up with!

cbakgly commented 10 years ago

Looking forward to your good news :D