webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros
sctp_process_lock.h File Reference

Go to the source code of this file.

Macros

#define SCTP_IPI_COUNT_INIT()
 
#define SCTP_WQ_ADDR_INIT()   (void)pthread_mutex_init(&SCTP_BASE_INFO(wq_addr_mtx), NULL)
 
#define SCTP_WQ_ADDR_DESTROY()   (void)pthread_mutex_destroy(&SCTP_BASE_INFO(wq_addr_mtx))
 
#define SCTP_WQ_ADDR_LOCK()   (void)pthread_mutex_lock(&SCTP_BASE_INFO(wq_addr_mtx))
 
#define SCTP_WQ_ADDR_UNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(wq_addr_mtx))
 
#define SCTP_INP_INFO_LOCK_INIT()   (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_ep_mtx), NULL)
 
#define SCTP_INP_INFO_LOCK_DESTROY()   (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_ep_mtx))
 
#define SCTP_INP_INFO_RLOCK()   (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_ep_mtx))
 
#define SCTP_INP_INFO_TRYLOCK()   (!(pthread_mutex_trylock(&SCTP_BASE_INFO(ipi_ep_mtx))))
 
#define SCTP_INP_INFO_WLOCK()   (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_ep_mtx))
 
#define SCTP_INP_INFO_RUNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_ep_mtx))
 
#define SCTP_INP_INFO_WUNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_ep_mtx))
 
#define SCTP_IP_PKTLOG_INIT()   (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_pktlog_mtx), NULL)
 
#define SCTP_IP_PKTLOG_DESTROY()   (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_pktlog_mtx))
 
#define SCTP_IP_PKTLOG_LOCK()   (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_pktlog_mtx))
 
#define SCTP_IP_PKTLOG_UNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_pktlog_mtx))
 
#define SCTP_INP_READ_INIT(_inp)   (void)pthread_mutex_init(&(_inp)->inp_rdata_mtx, NULL)
 
#define SCTP_INP_READ_DESTROY(_inp)   (void)pthread_mutex_destroy(&(_inp)->inp_rdata_mtx)
 
#define SCTP_INP_READ_LOCK(_inp)
 
#define SCTP_INP_READ_UNLOCK(_inp)   (void)pthread_mutex_unlock(&(_inp)->inp_rdata_mtx)
 
#define SCTP_INP_LOCK_INIT(_inp)   (void)pthread_mutex_init(&(_inp)->inp_mtx, NULL)
 
#define SCTP_ASOC_CREATE_LOCK_INIT(_inp)   (void)pthread_mutex_init(&(_inp)->inp_create_mtx, NULL)
 
#define SCTP_INP_LOCK_DESTROY(_inp)   (void)pthread_mutex_destroy(&(_inp)->inp_mtx)
 
#define SCTP_ASOC_CREATE_LOCK_DESTROY(_inp)   (void)pthread_mutex_destroy(&(_inp)->inp_create_mtx)
 
#define SCTP_INP_RLOCK(_inp)
 
#define SCTP_INP_WLOCK(_inp)
 
#define SCTP_TCB_SEND_LOCK_INIT(_tcb)   (void)pthread_mutex_init(&(_tcb)->tcb_send_mtx, NULL)
 
#define SCTP_TCB_SEND_LOCK_DESTROY(_tcb)   (void)pthread_mutex_destroy(&(_tcb)->tcb_send_mtx)
 
#define SCTP_TCB_SEND_LOCK(_tcb)
 
#define SCTP_TCB_SEND_UNLOCK(_tcb)   (void)pthread_mutex_unlock(&(_tcb)->tcb_send_mtx)
 
#define SCTP_INP_INCR_REF(_inp)   atomic_add_int(&((_inp)->refcount), 1)
 
#define SCTP_INP_DECR_REF(_inp)   atomic_add_int(&((_inp)->refcount), -1)
 
#define SCTP_ASOC_CREATE_LOCK(_inp)
 
#define SCTP_INP_RUNLOCK(_inp)   (void)pthread_mutex_unlock(&(_inp)->inp_mtx)
 
#define SCTP_INP_WUNLOCK(_inp)   (void)pthread_mutex_unlock(&(_inp)->inp_mtx)
 
#define SCTP_ASOC_CREATE_UNLOCK(_inp)   (void)pthread_mutex_unlock(&(_inp)->inp_create_mtx)
 
#define SCTP_TCB_LOCK_INIT(_tcb)   (void)pthread_mutex_init(&(_tcb)->tcb_mtx, NULL)
 
#define SCTP_TCB_LOCK_DESTROY(_tcb)   (void)pthread_mutex_destroy(&(_tcb)->tcb_mtx)
 
#define SCTP_TCB_LOCK(_tcb)
 
#define SCTP_TCB_TRYLOCK(_tcb)   (!(pthread_mutex_trylock(&(_tcb)->tcb_mtx)))
 
#define SCTP_TCB_UNLOCK(_tcb)   (void)pthread_mutex_unlock(&(_tcb)->tcb_mtx)
 
#define SCTP_TCB_LOCK_ASSERT(_tcb)
 
#define SCTP_INP_LOCK_CONTENDED(_inp)   (0) /* Don't know if this is possible */
 
#define SCTP_INP_READ_CONTENDED(_inp)   (0) /* Don't know if this is possible */
 
#define SCTP_ASOC_CREATE_LOCK_CONTENDED(_inp)   (0) /* Don't know if this is possible */
 
#define SOCK_LOCK(_so)
 
#define SOCK_UNLOCK(_so)
 
#define SOCKBUF_LOCK(_so_buf)
 
#define SOCKBUF_UNLOCK(_so_buf)
 
#define SOCKBUF_LOCK_ASSERT(_so_buf)
 
#define SCTP_STATLOG_INIT_LOCK()
 
#define SCTP_STATLOG_LOCK()
 
#define SCTP_STATLOG_UNLOCK()
 
#define SCTP_STATLOG_DESTROY()
 
#define SCTP_IPI_ADDR_INIT()   (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_addr_mtx), NULL)
 
#define SCTP_IPI_ADDR_DESTROY()   (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_addr_mtx))
 
#define SCTP_IPI_ADDR_RLOCK()
 
#define SCTP_IPI_ADDR_RUNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_addr_mtx))
 
#define SCTP_IPI_ADDR_WLOCK()
 
#define SCTP_IPI_ADDR_WUNLOCK()   (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_addr_mtx))
 
#define SCTP_ITERATOR_LOCK_INIT()   (void)pthread_mutex_init(&sctp_it_ctl.it_mtx, NULL)
 
#define SCTP_ITERATOR_LOCK()
 
#define SCTP_ITERATOR_UNLOCK()   (void)pthread_mutex_unlock(&sctp_it_ctl.it_mtx)
 
#define SCTP_ITERATOR_LOCK_DESTROY()   (void)pthread_mutex_destroy(&sctp_it_ctl.it_mtx)
 
#define SCTP_IPI_ITERATOR_WQ_INIT()   (void)pthread_mutex_init(&sctp_it_ctl.ipi_iterator_wq_mtx, NULL)
 
#define SCTP_IPI_ITERATOR_WQ_DESTROY()   (void)pthread_mutex_destroy(&sctp_it_ctl.ipi_iterator_wq_mtx)
 
#define SCTP_IPI_ITERATOR_WQ_LOCK()
 
#define SCTP_IPI_ITERATOR_WQ_UNLOCK()   (void)pthread_mutex_unlock(&sctp_it_ctl.ipi_iterator_wq_mtx)
 
#define SCTP_INCR_EP_COUNT()
 
#define SCTP_DECR_EP_COUNT()
 
#define SCTP_INCR_ASOC_COUNT()
 
#define SCTP_DECR_ASOC_COUNT()
 
#define SCTP_INCR_LADDR_COUNT()
 
#define SCTP_DECR_LADDR_COUNT()
 
#define SCTP_INCR_RADDR_COUNT()
 
#define SCTP_DECR_RADDR_COUNT()
 
#define SCTP_INCR_CHK_COUNT()
 
#define SCTP_DECR_CHK_COUNT()
 
#define SCTP_INCR_READQ_COUNT()
 
#define SCTP_DECR_READQ_COUNT()
 
#define SCTP_INCR_STRMOQ_COUNT()
 
#define SCTP_DECR_STRMOQ_COUNT()
 

Macro Definition Documentation

◆ SCTP_ASOC_CREATE_LOCK

#define SCTP_ASOC_CREATE_LOCK (   _inp)
Value:
do { \
(void)pthread_mutex_lock(&(_inp)->inp_create_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_ASOC_CREATE_LOCK_CONTENDED

#define SCTP_ASOC_CREATE_LOCK_CONTENDED (   _inp)    (0) /* Don't know if this is possible */

◆ SCTP_ASOC_CREATE_LOCK_DESTROY

#define SCTP_ASOC_CREATE_LOCK_DESTROY (   _inp)    (void)pthread_mutex_destroy(&(_inp)->inp_create_mtx)

◆ SCTP_ASOC_CREATE_LOCK_INIT

#define SCTP_ASOC_CREATE_LOCK_INIT (   _inp)    (void)pthread_mutex_init(&(_inp)->inp_create_mtx, NULL)

◆ SCTP_ASOC_CREATE_UNLOCK

#define SCTP_ASOC_CREATE_UNLOCK (   _inp)    (void)pthread_mutex_unlock(&(_inp)->inp_create_mtx)

◆ SCTP_DECR_ASOC_COUNT

#define SCTP_DECR_ASOC_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_asoc), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_CHK_COUNT

#define SCTP_DECR_CHK_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_chunk), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_EP_COUNT

#define SCTP_DECR_EP_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ep), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_LADDR_COUNT

#define SCTP_DECR_LADDR_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_laddr), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_RADDR_COUNT

#define SCTP_DECR_RADDR_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_raddr), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_READQ_COUNT

#define SCTP_DECR_READQ_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_readq), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_DECR_STRMOQ_COUNT

#define SCTP_DECR_STRMOQ_COUNT ( )
Value:
do { \
atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_strmoq), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_ASOC_COUNT

#define SCTP_INCR_ASOC_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_asoc), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_CHK_COUNT

#define SCTP_INCR_CHK_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_chunk), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_EP_COUNT

#define SCTP_INCR_EP_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_ep), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_LADDR_COUNT

#define SCTP_INCR_LADDR_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_laddr), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_RADDR_COUNT

#define SCTP_INCR_RADDR_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_raddr), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_READQ_COUNT

#define SCTP_INCR_READQ_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_readq), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INCR_STRMOQ_COUNT

#define SCTP_INCR_STRMOQ_COUNT ( )
Value:
do { \
atomic_add_int(&SCTP_BASE_INFO(ipi_count_strmoq), 1); \
} while (0)
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_INP_DECR_REF

#define SCTP_INP_DECR_REF (   _inp)    atomic_add_int(&((_inp)->refcount), -1)

◆ SCTP_INP_INCR_REF

#define SCTP_INP_INCR_REF (   _inp)    atomic_add_int(&((_inp)->refcount), 1)

◆ SCTP_INP_INFO_LOCK_DESTROY

#define SCTP_INP_INFO_LOCK_DESTROY ( )    (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_ep_mtx))

◆ SCTP_INP_INFO_LOCK_INIT

#define SCTP_INP_INFO_LOCK_INIT ( )    (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_ep_mtx), NULL)

◆ SCTP_INP_INFO_RLOCK

#define SCTP_INP_INFO_RLOCK ( )    (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_ep_mtx))

◆ SCTP_INP_INFO_RUNLOCK

#define SCTP_INP_INFO_RUNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_ep_mtx))

◆ SCTP_INP_INFO_TRYLOCK

#define SCTP_INP_INFO_TRYLOCK ( )    (!(pthread_mutex_trylock(&SCTP_BASE_INFO(ipi_ep_mtx))))

◆ SCTP_INP_INFO_WLOCK

#define SCTP_INP_INFO_WLOCK ( )    (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_ep_mtx))

◆ SCTP_INP_INFO_WUNLOCK

#define SCTP_INP_INFO_WUNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_ep_mtx))

◆ SCTP_INP_LOCK_CONTENDED

#define SCTP_INP_LOCK_CONTENDED (   _inp)    (0) /* Don't know if this is possible */

◆ SCTP_INP_LOCK_DESTROY

#define SCTP_INP_LOCK_DESTROY (   _inp)    (void)pthread_mutex_destroy(&(_inp)->inp_mtx)

◆ SCTP_INP_LOCK_INIT

#define SCTP_INP_LOCK_INIT (   _inp)    (void)pthread_mutex_init(&(_inp)->inp_mtx, NULL)

◆ SCTP_INP_READ_CONTENDED

#define SCTP_INP_READ_CONTENDED (   _inp)    (0) /* Don't know if this is possible */

◆ SCTP_INP_READ_DESTROY

#define SCTP_INP_READ_DESTROY (   _inp)    (void)pthread_mutex_destroy(&(_inp)->inp_rdata_mtx)

◆ SCTP_INP_READ_INIT

#define SCTP_INP_READ_INIT (   _inp)    (void)pthread_mutex_init(&(_inp)->inp_rdata_mtx, NULL)

◆ SCTP_INP_READ_LOCK

#define SCTP_INP_READ_LOCK (   _inp)
Value:
do { \
(void)pthread_mutex_lock(&(_inp)->inp_rdata_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_INP_READ_UNLOCK

#define SCTP_INP_READ_UNLOCK (   _inp)    (void)pthread_mutex_unlock(&(_inp)->inp_rdata_mtx)

◆ SCTP_INP_RLOCK

#define SCTP_INP_RLOCK (   _inp)
Value:
do { \
(void)pthread_mutex_lock(&(_inp)->inp_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_INP_RUNLOCK

#define SCTP_INP_RUNLOCK (   _inp)    (void)pthread_mutex_unlock(&(_inp)->inp_mtx)

◆ SCTP_INP_WLOCK

#define SCTP_INP_WLOCK (   _inp)
Value:
do { \
(void)pthread_mutex_lock(&(_inp)->inp_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_INP_WUNLOCK

#define SCTP_INP_WUNLOCK (   _inp)    (void)pthread_mutex_unlock(&(_inp)->inp_mtx)

◆ SCTP_IP_PKTLOG_DESTROY

#define SCTP_IP_PKTLOG_DESTROY ( )    (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_pktlog_mtx))

◆ SCTP_IP_PKTLOG_INIT

#define SCTP_IP_PKTLOG_INIT ( )    (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_pktlog_mtx), NULL)

◆ SCTP_IP_PKTLOG_LOCK

#define SCTP_IP_PKTLOG_LOCK ( )    (void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_pktlog_mtx))

◆ SCTP_IP_PKTLOG_UNLOCK

#define SCTP_IP_PKTLOG_UNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_pktlog_mtx))

◆ SCTP_IPI_ADDR_DESTROY

#define SCTP_IPI_ADDR_DESTROY ( )    (void)pthread_mutex_destroy(&SCTP_BASE_INFO(ipi_addr_mtx))

◆ SCTP_IPI_ADDR_INIT

#define SCTP_IPI_ADDR_INIT ( )    (void)pthread_mutex_init(&SCTP_BASE_INFO(ipi_addr_mtx), NULL)

◆ SCTP_IPI_ADDR_RLOCK

#define SCTP_IPI_ADDR_RLOCK ( )
Value:
do { \
(void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_addr_mtx)); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_IPI_ADDR_RUNLOCK

#define SCTP_IPI_ADDR_RUNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_addr_mtx))

◆ SCTP_IPI_ADDR_WLOCK

#define SCTP_IPI_ADDR_WLOCK ( )
Value:
do { \
(void)pthread_mutex_lock(&SCTP_BASE_INFO(ipi_addr_mtx)); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81
#define SCTP_BASE_INFO(__m)
Definition: sctp_os_userspace.h:603

◆ SCTP_IPI_ADDR_WUNLOCK

#define SCTP_IPI_ADDR_WUNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(ipi_addr_mtx))

◆ SCTP_IPI_COUNT_INIT

#define SCTP_IPI_COUNT_INIT ( )

◆ SCTP_IPI_ITERATOR_WQ_DESTROY

#define SCTP_IPI_ITERATOR_WQ_DESTROY ( )    (void)pthread_mutex_destroy(&sctp_it_ctl.ipi_iterator_wq_mtx)

◆ SCTP_IPI_ITERATOR_WQ_INIT

#define SCTP_IPI_ITERATOR_WQ_INIT ( )    (void)pthread_mutex_init(&sctp_it_ctl.ipi_iterator_wq_mtx, NULL)

◆ SCTP_IPI_ITERATOR_WQ_LOCK

#define SCTP_IPI_ITERATOR_WQ_LOCK ( )
Value:
do { \
(void)pthread_mutex_lock(&sctp_it_ctl.ipi_iterator_wq_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81
struct iterator_control sctp_it_ctl
Definition: sctp_bsd_addr.c:80

◆ SCTP_IPI_ITERATOR_WQ_UNLOCK

#define SCTP_IPI_ITERATOR_WQ_UNLOCK ( )    (void)pthread_mutex_unlock(&sctp_it_ctl.ipi_iterator_wq_mtx)

◆ SCTP_ITERATOR_LOCK

#define SCTP_ITERATOR_LOCK ( )
Value:
do { \
(void)pthread_mutex_lock(&sctp_it_ctl.it_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81
void * it_mtx
Definition: sctp_structs.h:207
struct iterator_control sctp_it_ctl
Definition: sctp_bsd_addr.c:80

◆ SCTP_ITERATOR_LOCK_DESTROY

#define SCTP_ITERATOR_LOCK_DESTROY ( )    (void)pthread_mutex_destroy(&sctp_it_ctl.it_mtx)

◆ SCTP_ITERATOR_LOCK_INIT

#define SCTP_ITERATOR_LOCK_INIT ( )    (void)pthread_mutex_init(&sctp_it_ctl.it_mtx, NULL)

◆ SCTP_ITERATOR_UNLOCK

#define SCTP_ITERATOR_UNLOCK ( )    (void)pthread_mutex_unlock(&sctp_it_ctl.it_mtx)

◆ SCTP_STATLOG_DESTROY

#define SCTP_STATLOG_DESTROY ( )

◆ SCTP_STATLOG_INIT_LOCK

#define SCTP_STATLOG_INIT_LOCK ( )

◆ SCTP_STATLOG_LOCK

#define SCTP_STATLOG_LOCK ( )

◆ SCTP_STATLOG_UNLOCK

#define SCTP_STATLOG_UNLOCK ( )

◆ SCTP_TCB_LOCK

#define SCTP_TCB_LOCK (   _tcb)
Value:
do { \
(void)pthread_mutex_lock(&(_tcb)->tcb_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_TCB_LOCK_ASSERT

#define SCTP_TCB_LOCK_ASSERT (   _tcb)

◆ SCTP_TCB_LOCK_DESTROY

#define SCTP_TCB_LOCK_DESTROY (   _tcb)    (void)pthread_mutex_destroy(&(_tcb)->tcb_mtx)

◆ SCTP_TCB_LOCK_INIT

#define SCTP_TCB_LOCK_INIT (   _tcb)    (void)pthread_mutex_init(&(_tcb)->tcb_mtx, NULL)

◆ SCTP_TCB_SEND_LOCK

#define SCTP_TCB_SEND_LOCK (   _tcb)
Value:
do { \
(void)pthread_mutex_lock(&(_tcb)->tcb_send_mtx); \
} while (0)
void
Definition: AVFoundationCFSoftLinking.h:81

◆ SCTP_TCB_SEND_LOCK_DESTROY

#define SCTP_TCB_SEND_LOCK_DESTROY (   _tcb)    (void)pthread_mutex_destroy(&(_tcb)->tcb_send_mtx)

◆ SCTP_TCB_SEND_LOCK_INIT

#define SCTP_TCB_SEND_LOCK_INIT (   _tcb)    (void)pthread_mutex_init(&(_tcb)->tcb_send_mtx, NULL)

◆ SCTP_TCB_SEND_UNLOCK

#define SCTP_TCB_SEND_UNLOCK (   _tcb)    (void)pthread_mutex_unlock(&(_tcb)->tcb_send_mtx)

◆ SCTP_TCB_TRYLOCK

#define SCTP_TCB_TRYLOCK (   _tcb)    (!(pthread_mutex_trylock(&(_tcb)->tcb_mtx)))

◆ SCTP_TCB_UNLOCK

#define SCTP_TCB_UNLOCK (   _tcb)    (void)pthread_mutex_unlock(&(_tcb)->tcb_mtx)

◆ SCTP_WQ_ADDR_DESTROY

#define SCTP_WQ_ADDR_DESTROY ( )    (void)pthread_mutex_destroy(&SCTP_BASE_INFO(wq_addr_mtx))

◆ SCTP_WQ_ADDR_INIT

#define SCTP_WQ_ADDR_INIT ( )    (void)pthread_mutex_init(&SCTP_BASE_INFO(wq_addr_mtx), NULL)

◆ SCTP_WQ_ADDR_LOCK

#define SCTP_WQ_ADDR_LOCK ( )    (void)pthread_mutex_lock(&SCTP_BASE_INFO(wq_addr_mtx))

◆ SCTP_WQ_ADDR_UNLOCK

#define SCTP_WQ_ADDR_UNLOCK ( )    (void)pthread_mutex_unlock(&SCTP_BASE_INFO(wq_addr_mtx))

◆ SOCK_LOCK

#define SOCK_LOCK (   _so)

◆ SOCK_UNLOCK

#define SOCK_UNLOCK (   _so)

◆ SOCKBUF_LOCK

#define SOCKBUF_LOCK (   _so_buf)

◆ SOCKBUF_LOCK_ASSERT

#define SOCKBUF_LOCK_ASSERT (   _so_buf)

◆ SOCKBUF_UNLOCK

#define SOCKBUF_UNLOCK (   _so_buf)