Tezc e357ed8d06
doc (#26)
* doc
2021-02-03 08:09:50 +03:00
..
2021-02-01 00:56:05 +03:00
2020-11-11 01:19:49 +03:00
2021-02-01 00:56:05 +03:00
2021-02-03 08:09:50 +03:00
2020-11-29 23:21:25 +03:00
2021-02-03 08:09:50 +03:00

Mutex

Mutex wrapper

  • Basic mutex wrapper for Unixes and Windows.

#include "sc_mutex.h"

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

    sc_mutex_init(&mutex);

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

    sc_mutex_term(&mutex);

    return 0;
}