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

atomicCounterIncrement - atomically increment a counter and return the prior value

Declaration

uintatomicCounterIncrement(atomic_uintc);

Description

atomicCounterIncrement atomically increments the value of the atomic counter c and returns its prior
       value.

Name

       atomicCounterIncrement - atomically increment a counter and return the prior value

Parameters

c
           Specify the handle to the atomic counter to increment.

See Also

atomicCounterDecrement(), atomicCounter()

Version Support

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

See Also