OpenRM - RM Library (rmthread.h)

## Index of OpenRM - RM Library

RMmutex;

    typedef pthread_mutex_t RMmutex;
    typedef pthread_t       RMthread;

    #else  /* RM_WIN */

    typedef HANDLE        RMmutex;
    typedef unsigned long RMthread;

    #endif

    RM_EXPORT_API RMmutex * rmMutexNew(RMenum initLockState);
    RM_EXPORT_API RMenum    rmMutexDelete(RMmutex *);
    RM_EXPORT_API RMenum    rmMutexLock(RMmutex *);
    RM_EXPORT_API RMenum    rmMutexUnlock(RMmutex *);
    RM_EXPORT_API RMenum    rmMutexTryLock(RMmutex *toQuery);

    RM_EXPORT_API RMenum    rmThreadCreate(RMthread *threadID, void * (*threadFunc)(void *), void *args);
    RM_EXPORT_API RMenum    rmThreadJoin (RMthread *threadID, void **threadReturn);

    #ifdef __cplusplus
    }

librm library source file: rmthread.h