fn() atomicMax
Lock-free implemenattion of x = max(x, y).

Defined in <seqan/parallel.h>
Signature void atomicMax(x, y);

Parameters

x Integer to set to max(x, y).
y Other integer.

Detailed Description

This is equivalent to

atomic {
    x = max(x, y);
}

Data Races

Thread safety unknown!