Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Labels:None
Description
in: http://www.freeswitch.org/docs/group__switch__thread__mutex.html
the #defines at the top are:
#define SWITCH_MUTEX_DEFAULT 0x0
#define SWITCH_MUTEX_NESTED 0x1
#define SWITCH_MUTEX_UNNESTED 0x2
and in the discussion below switch_mutex_init throw a THREADED in there..
as in:
SWITCH_THREAD_MUTEX_DEFAULT platform-optimal lock behavior.
SWITCH_THREAD_MUTEX_NESTED enable nested (recursive) locks.
SWITCH_THREAD_MUTEX_UNNESTED disable nested locks (non-recursive).
and in the warning too..
not a big deal.. just had me scratching my head trying to compile...
the #defines at the top are:
#define SWITCH_MUTEX_DEFAULT 0x0
#define SWITCH_MUTEX_NESTED 0x1
#define SWITCH_MUTEX_UNNESTED 0x2
and in the discussion below switch_mutex_init throw a THREADED in there..
as in:
SWITCH_THREAD_MUTEX_DEFAULT platform-optimal lock behavior.
SWITCH_THREAD_MUTEX_NESTED enable nested (recursive) locks.
SWITCH_THREAD_MUTEX_UNNESTED disable nested locks (non-recursive).
and in the warning too..
not a big deal.. just had me scratching my head trying to compile...