Searched refs:SOCKBUF_MTX (Results 1 – 2 of 2) sorted by relevance
274 #define SOCKBUF_MTX(_sb) (&(_sb)->sb_mtx) macro277 InitializeCriticalSection(SOCKBUF_MTX(_sb))278 #define SOCKBUF_LOCK_DESTROY(_sb) DeleteCriticalSection(SOCKBUF_MTX(_sb))291 pthread_mutex_init(SOCKBUF_MTX(_sb), &mutex_attr); \296 pthread_mutex_init(SOCKBUF_MTX(_sb), NULL)298 #define SOCKBUF_LOCK_DESTROY(_sb) pthread_mutex_destroy(SOCKBUF_MTX(_sb))319 #define SOCK_MTX(_so) SOCKBUF_MTX(&(_so)->so_rcv)
509 …KASSERT(pthread_mutex_trylock(SOCKBUF_MTX(_so_buf)) == EBUSY, ("%s: socket buffer not locked", __f…512 …KASSERT(pthread_mutex_lock(SOCKBUF_MTX(_so_buf)) == 0, ("%s: sockbuf_mtx already locked", __func__…514 KASSERT(pthread_mutex_unlock(SOCKBUF_MTX(_so_buf)) == 0, ("%s: sockbuf_mtx not locked", __func__))517 pthread_mutex_lock(SOCKBUF_MTX(_so_buf))519 pthread_mutex_unlock(SOCKBUF_MTX(_so_buf))