Skip to content

Latest commit

 

History

History
 
 

mutex

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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;
}