Ozan Tezcan 985a70824d
Fix clang-tidy warnings (#101)
Fix clang-tidy warnings
2022-12-07 00:55:43 +03:00
..
2022-12-07 00:55:43 +03:00
2022-08-20 18:56:21 +03:00
2022-08-20 18:56:21 +03:00
2021-02-07 22:31:04 +03:00

Mutex

Mutex wrapper

  • Basic mutex wrapper for Posix and Windows.

#include "sc_mutex.h"

int main(int argc, char *argv[])
{
    struct sc_mutex mutex;

    sc_mutex_init(&mutex); // Init mutex

    sc_mutex_lock(&mutex);
    sc_mutex_unlock(&mutex);

    sc_mutex_term(&mutex); // destroy mutex

    return 0;
}