Home
last modified time | relevance | path

Searched refs:count_lock (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_iocp.c58 static void *count_lock = NULL, *count_cond = NULL; variable
64 EVTHREAD_ALLOC_LOCK(count_lock, 0); in count_init()
67 tt_assert(count_lock); in count_init()
77 EVTHREAD_FREE_LOCK(count_lock, 0); in count_free()
84 EVLOCK_LOCK(count_lock, 0); in count_incr()
87 EVLOCK_UNLOCK(count_lock, 0); in count_incr()
97 EVLOCK_LOCK(count_lock, 0); in count_wait_for()
102 EVTHREAD_COND_WAIT_TIMED(count_cond, count_lock, &tv); in count_wait_for()
108 EVLOCK_UNLOCK(count_lock, 0); in count_wait_for()
H A Dregress_thread.c95 void *count_lock; variable
126 EVLOCK_LOCK(count_lock, 0); in basic_thread()
128 EVLOCK_UNLOCK(count_lock, 0); in basic_thread()
132 EVLOCK_LOCK(count_lock, 0); in basic_thread()
135 EVLOCK_UNLOCK(count_lock, 0); in basic_thread()
179 EVTHREAD_ALLOC_LOCK(count_lock, 0); in thread_basic()
180 tt_assert(count_lock); in thread_basic()
245 EVTHREAD_FREE_LOCK(count_lock, 0); in thread_basic()
/freebsd/contrib/libevent/test/
H A Dregress_iocp.c58 static void *count_lock = NULL, *count_cond = NULL; variable
64 EVTHREAD_ALLOC_LOCK(count_lock, 0); in count_init()
67 tt_assert(count_lock); in count_init()
77 EVTHREAD_FREE_LOCK(count_lock, 0); in count_free()
84 EVLOCK_LOCK(count_lock, 0); in count_incr()
87 EVLOCK_UNLOCK(count_lock, 0); in count_incr()
97 EVLOCK_LOCK(count_lock, 0); in count_wait_for()
102 EVTHREAD_COND_WAIT_TIMED(count_cond, count_lock, &tv); in count_wait_for()
108 EVLOCK_UNLOCK(count_lock, 0); in count_wait_for()
H A Dregress_thread.c95 void *count_lock; variable
126 EVLOCK_LOCK(count_lock, 0); in basic_thread()
128 EVLOCK_UNLOCK(count_lock, 0); in basic_thread()
132 EVLOCK_LOCK(count_lock, 0); in basic_thread()
135 EVLOCK_UNLOCK(count_lock, 0); in basic_thread()
179 EVTHREAD_ALLOC_LOCK(count_lock, 0); in thread_basic()
180 tt_assert(count_lock); in thread_basic()
245 EVTHREAD_FREE_LOCK(count_lock, 0); in thread_basic()
/freebsd/sys/dev/drm2/
H A Ddrm_bufs.c739 mtx_lock(&dev->count_lock); in drm_addbufs_agp()
741 mtx_unlock(&dev->count_lock); in drm_addbufs_agp()
745 mtx_unlock(&dev->count_lock); in drm_addbufs_agp()
890 mtx_lock(&dev->count_lock); in drm_addbufs_pci()
892 mtx_unlock(&dev->count_lock); in drm_addbufs_pci()
896 mtx_unlock(&dev->count_lock); in drm_addbufs_pci()
1102 mtx_lock(&dev->count_lock); in drm_addbufs_sg()
1104 mtx_unlock(&dev->count_lock); in drm_addbufs_sg()
1108 mtx_unlock(&dev->count_lock); in drm_addbufs_sg()
1258 mtx_lock(&dev->count_lock); in drm_addbufs_fb()
[all …]
H A Ddrm_stub.c234 mtx_init(&dev->count_lock, "drmcount", NULL, MTX_DEF); in drm_fill_in_dev()
322 mtx_destroy(&dev->count_lock); in drm_cancel_fill_in_dev()
489 mtx_destroy(&dev->count_lock); in drm_put_dev()
H A DdrmP.h975 struct mtx count_lock; /**< For inuse, drm_device::open_count, drm_device::buf_use */ member