Logo Search packages:      
Sourcecode: mingw-w64 version File versions

t_intrinc.c

#include <windows.h>
#include <stdio.h>

int main() {
    LONG poop = 0;
    for (int i = 0; i < 5; ++i) {
        printf("[%02I32d]\n", InterlockedIncrement(&poop));
    }
    for (int j = 0; j < 5; ++j) {
        printf("[%02I32d]\n", InterlockedDecrement(&poop));
    }
}


Generated by  Doxygen 1.6.0   Back to index