diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-02-21 11:18:36 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-02-21 11:18:36 +0000 |
commit | 9b8e0a5afe9cba0fd430e9642630bd465db9aefa (patch) | |
tree | 550cd346c99b144a79c76096dc75d6be2dfb3c31 /pjlib/include/pj/config.h | |
parent | 99de12689e7c6b8117ee82ff8e3c17e5ec85418d (diff) |
Fixed #1616: Implementation of Group lock and other foundation in PJLIB for fixing synchronization issues
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4359 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/config.h')
-rw-r--r-- | pjlib/include/pj/config.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h index 2568214d..9b504c3a 100644 --- a/pjlib/include/pj/config.h +++ b/pjlib/include/pj/config.h @@ -488,6 +488,14 @@ /** + * Set this to 1 to enable debugging on the group lock. Default: 0 + */ +#ifndef PJ_GRP_LOCK_DEBUG +# define PJ_GRP_LOCK_DEBUG 0 +#endif + + +/** * Specify this as \a stack_size argument in #pj_thread_create() to specify * that thread should use default stack size for the current platform. * @@ -1122,6 +1130,14 @@ #endif /** + * Simulate race condition by sleeping the thread in strategic locations. + * Default: no! + */ +#ifndef PJ_RACE_ME +# define PJ_RACE_ME(x) +#endif + +/** * Function attributes to inform that the function may throw exception. * * @param x The exception list, enclosed in parenthesis. |