I thought this wasn't allowed:

shared uint threadsCount;

void bumpThreadsCount()
{
    ++threadsCount;
}

void main()
{
}

According to TDPL it should error and we should use atomicOp from
std.concurrency instead. atomicOp is what I've used so far if I had to
use shared variables. Has ++ suddenly become atomic automatically or
is this a bug?

Reply via email to