logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

atomicCounterDecrement - atomically decrement a counter and return the prior value

Declaration

uintatomicCounterDecrement(atomic_uintc);

Description

atomicCounterDecrement atomically decrements the value of the atomic counter c and returns its new value.

Name

       atomicCounterDecrement - atomically decrement a counter and return the prior value

Parameters

c
           Specify the handle to the atomic counter to decrement.

See Also

atomicCounterIncrement(), atomicCounter()

Version Support

       ┌────────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                        │        OpenGLShadingLanguageVersion                                            │
       ├────────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name                   │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ atomicCounterDecrement │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also