Skip to content
Bruce Mitchener edited this page May 10, 2013 · 1 revision

Atomic Values

Atomic operations are currently limited to global variables that have been flagged as locked:

define locked variable *name-count* :: <integer> = 0;

There are also a couple of instances of atomic slots, but this doesn't appear to do anything.

We need to decide what can be operated upon atomically and modify the compiler to match. We should also have a single keyword for this (atomic).

This will also involve fixing some code within sources/dfmc/conversion/convert.dylan which handles error checking on conditional updates.

Atomic Operations

The available atomic operations should probably match what is specified by C99 and C++11. These can be made available as new compiler primitives.