summaryrefslogtreecommitdiff
path: root/pjnath/include/pjnath/stun_sock.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2013-02-21 11:26:35 +0000
committerBenny Prijono <bennylp@teluu.com>2013-02-21 11:26:35 +0000
commit7d07d4d6975f55876bc096627696d23028f56d48 (patch)
tree58ff0473368535fa4e70fc4b16a978a1b8ecab99 /pjnath/include/pjnath/stun_sock.h
parent9b8e0a5afe9cba0fd430e9642630bd465db9aefa (diff)
Fixed #1617: major synchronization fixes in PJNATH with incorporation of group lock to avoid deadlock and crashes due to race conditions
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4360 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include/pjnath/stun_sock.h')
-rw-r--r--pjnath/include/pjnath/stun_sock.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pjnath/include/pjnath/stun_sock.h b/pjnath/include/pjnath/stun_sock.h
index f9e9be2e..30e94a2d 100644
--- a/pjnath/include/pjnath/stun_sock.h
+++ b/pjnath/include/pjnath/stun_sock.h
@@ -27,6 +27,7 @@
#include <pjnath/stun_config.h>
#include <pjlib-util/resolver.h>
#include <pj/ioqueue.h>
+#include <pj/lock.h>
#include <pj/sock.h>
#include <pj/sock_qos.h>
@@ -218,6 +219,14 @@ typedef struct pj_stun_sock_info
typedef struct pj_stun_sock_cfg
{
/**
+ * The group lock to be used by the STUN socket. If NULL, the STUN socket
+ * will create one internally.
+ *
+ * Default: NULL
+ */
+ pj_grp_lock_t *grp_lock;
+
+ /**
* Packet buffer size.
*
* Default value is PJ_STUN_SOCK_PKT_LEN.