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

atomicFetchAdd and atomicFetchSub are not supported #3646

Closed
rymrg opened this issue Jan 19, 2021 · 1 comment
Closed

atomicFetchAdd and atomicFetchSub are not supported #3646

rymrg opened this issue Jan 19, 2021 · 1 comment

Comments

@rymrg
Copy link

rymrg commented Jan 19, 2021

atomicFetchAdd and atomicFetchSub are not supported.
Adding support in ldc-developers/druntime#193

import std;
import core.atomic;
void main()
{
    long x = 1;
    writeln(x.atomicFetchAdd(1));
    writeln(x.atomicFetchSub(1));
    writeln(x);
}

Output:

/dlang/ldc-1.23.0/bin/../import/core/atomic.d(191): Error: undefined identifier atomicFetchAdd in module core.internal.atomic
onlineapp.d(6): Error: template instance core.atomic.atomicFetchAdd!(cast(MemoryOrder)5, long) error instantiating
/dlang/ldc-1.23.0/bin/../import/core/atomic.d(220): Error: undefined identifier atomicFetchSub in module core.internal.atomic
onlineapp.d(7): Error: template instance core.atomic.atomicFetchSub!(cast(MemoryOrder)5, long) error instantiating
@rymrg
Copy link
Author

rymrg commented Jan 24, 2021

Merged.

@rymrg rymrg closed this as completed Jan 24, 2021
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

1 participant