[dmd-concurrency] is shared going to be a type modifier?

Michel Fortin michel.fortin at michelf.com
Thu Jan 7 13:18:49 PST 2010


Le 2010-01-07 à 15:34, Steve Schveighoffer a écrit :

> In fact, any shared class reference on the stack erroneously will create memory barriers around the stack variable itself -- you shouldn't be sharing any stack data.

I'm not sure you should never be sharing stack data. Stack data can already be allocated on the heap with closures. If you're going to give that closure to another thread, the data it uses needs to be shared.


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-concurrency mailing list