Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomic Increment Broken, Breaks std.parallelism #24

Closed
dsimcha opened this issue Nov 14, 2011 · 1 comment
Closed

Atomic Increment Broken, Breaks std.parallelism #24

dsimcha opened this issue Nov 14, 2011 · 1 comment

Comments

@dsimcha
Copy link

dsimcha commented Nov 14, 2011

import core.atomic;

void main() {
    ulong u;
    atomicOp!"+="(u, 1);
}

/home/dsimcha/apps/include/d/core/atomic.di(165): Error: cannot implicitly convert expression (here) of type shared(ulong)* to ulong*
/home/dsimcha/apps/include/d/core/atomic.di(112): Error: template instance core.atomic.cas!(ulong,ulong,ulong) error instantiating
instantiatied in test2.d(5): atomicOp!("+=",ulong,int)
test2.d(5): Error: template instance core.atomic.atomicOp!("+=",ulong,int) error instantiating

This breaks std.parallelism.

@AlexeyProkhin
Copy link
Member

Fixed in 2f53629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants