Rafael Delboni dbfc70491c
Option to turn off tests in the build (#42)
* feat: Option to turn of tests

* feat: Option to turn of tests

* fix: Removes test check on coverage

* docs: Force update options cache
2021-02-14 19:49:21 +03:00
..
2021-02-07 22:31:04 +03:00
2021-02-07 22:31:04 +03:00
2021-02-07 22:31:04 +03:00
2021-02-10 21:33:03 +03:00
2021-02-14 16:19:26 +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;
}