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

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.