void vortex_mutex_lock ( VortexMutex mutex_def  ) 

Locks the given mutex.

If the mutex is currently unlocked, it becomes locked and owned by the calling thread, and vortex_mutex_lock returns immediately. If the mutex is already locked by another thread, vortex_mutex_lock suspends the calling thread until the mutex is unlocked.

mutex_def The reference to the mutex to be locked. If the mutex reference is NULL no lock operation is performed.