OMNI_MUTEX_OWNER
MACRO

OMNI_MUTEX_OWNER - Sets the omni::sync::mutex to keep track of owning thread.

SYNOPSIS top

If this macro is defined, the omni::sync::mutex will maintain track of the calling/owning thread.

DESCRIPTION top

It is undefined behaviour for a thread that does not own the mutex to unlock it. If an unlock is called in such a manner, the application is likely to crash; to be able to catch this, defining this macro will add an omni::sync::thread_t to the mutex object to keep track of which thread called it (i.e. which thread owns the lock).

CONSIDERATIONS top

No special considerations.

PLATFORM SPECIFIC top

No platform specific notes.

NOTES top

None.