NAME

catmutex_init - initialize mutex

SYNOPSIS

#include <cat/cat.h>

#include <cat/catmutex.h>

void catmutex_init(CATMUTEX *m);

DESCRIPTION

This function initializes mutual exclusion lock (mutex) m. This should be done exactly once before the mutex can be used. Use catmutex_free to free a mutex.

NOTES

The mutex interface is implemented as macros on top of pthread mutexes on UNIX or Win32 CriticalSections on Windows NT. It must therefore be assumed that the interface has all the limitations of any of its possible underlying implementations:

SEE ALSO

cat, catutil

catmutex_free