Searched refs:mutex (Results 1 - 25 of 292) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/os/
H A Dos_thread.h31 * Thread, mutex, condition variable, barrier, semaphore and
45 #define pipe_mutex_assert_locked(mutex) \
46 __pipe_mutex_assert_locked(&(mutex))
49 __pipe_mutex_assert_locked(mtx_t *mutex) argument
55 int ret = mtx_trylock(mutex);
58 mtx_unlock(mutex);
60 (void)mutex;
71 mtx_t mutex; member in struct:__anonecf466fd0108
80 (void) mtx_init(&sema->mutex, mtx_plain);
88 mtx_destroy(&sema->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/os/
H A Dos_thread.h31 * Thread, mutex, condition variable, barrier, semaphore and
45 #define pipe_mutex_assert_locked(mutex) \
46 __pipe_mutex_assert_locked(&(mutex))
49 __pipe_mutex_assert_locked(mtx_t *mutex) argument
55 int ret = mtx_trylock(mutex);
58 mtx_unlock(mutex);
60 (void)mutex;
71 mtx_t mutex; member in struct:__anonda1668aa0108
80 (void) mtx_init(&sema->mutex, mtx_plain);
88 mtx_destroy(&sema->mutex);
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
H A Dlp_scene_queue.c53 mtx_t mutex; member in struct:lp_scene_queue
79 (void) mtx_init(&queue->mutex, mtx_plain);
91 mtx_destroy(&queue->mutex);
100 mtx_lock(&queue->mutex);
105 cnd_wait(&queue->change, &queue->mutex);
108 mtx_unlock(&queue->mutex);
116 mtx_unlock(&queue->mutex);
126 mtx_lock(&queue->mutex);
130 cnd_wait(&queue->change, &queue->mutex);
135 mtx_unlock(&queue->mutex);
[all...]
H A Dlp_fence.c55 (void) mtx_init(&fence->mutex, mtx_plain);
75 mtx_destroy(&fence->mutex);
91 mtx_lock(&fence->mutex);
100 /* Wakeup all threads waiting on the mutex:
104 mtx_unlock(&fence->mutex);
119 mtx_lock(&f->mutex);
122 cnd_wait(&f->signalled, &f->mutex);
124 mtx_unlock(&f->mutex);
146 mtx_lock(&f->mutex);
149 ret = cnd_timedwait(&f->signalled, &f->mutex,
[all...]
/xsrc/external/mit/libXt/dist/src/
H A DThreads.c78 xmutex_t mutex; member in struct:_LockRec
96 process_lock->mutex = xmutex_malloc();
97 xmutex_init(process_lock->mutex);
111 xmutex_lock(process_lock->mutex);
116 xmutex_lock(process_lock->mutex);
120 xmutex_unlock(process_lock->mutex);
126 xmutex_unlock(process_lock->mutex);
131 xcondition_wait(process_lock->cond, process_lock->mutex);
135 xmutex_unlock(process_lock->mutex);
144 xmutex_unlock(process_lock->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/tests/
H A Dstate_pool.c45 pthread_mutex_init(&device.mutex, NULL);
58 pthread_mutex_destroy(&device.mutex);
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/tests/
H A Dstate_pool.c44 pthread_mutex_init(&device.mutex, NULL);
58 pthread_mutex_destroy(&device.mutex);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
H A Dlp_fence.c55 (void) mtx_init(&fence->mutex, mtx_plain);
75 mtx_destroy(&fence->mutex);
91 mtx_lock(&fence->mutex);
100 /* Wakeup all threads waiting on the mutex:
104 mtx_unlock(&fence->mutex);
119 mtx_lock(&f->mutex);
122 cnd_wait(&f->signalled, &f->mutex);
124 mtx_unlock(&f->mutex);
146 mtx_lock(&f->mutex);
149 ret = cnd_timedwait(&f->signalled, &f->mutex,
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_ringbuffer.c20 mtx_t mutex; member in struct:util_ringbuffer
39 (void) mtx_init(&ring->mutex, mtx_plain);
51 mtx_destroy(&ring->mutex);
79 mtx_lock(&ring->mutex);
88 cnd_wait(&ring->change, &ring->mutex);
106 mtx_unlock(&ring->mutex);
120 mtx_lock(&ring->mutex);
126 cnd_wait(&ring->change, &ring->mutex);
158 mtx_unlock(&ring->mutex);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/va/
H A Dsubpicture.c76 mtx_lock(&drv->mutex);
79 mtx_unlock(&drv->mutex);
85 mtx_unlock(&drv->mutex);
91 mtx_unlock(&drv->mutex);
106 mtx_lock(&drv->mutex);
110 mtx_unlock(&drv->mutex);
116 mtx_unlock(&drv->mutex);
132 mtx_lock(&drv->mutex);
136 mtx_unlock(&drv->mutex);
141 mtx_unlock(&drv->mutex);
[all...]
H A Dbuffer.c67 mtx_lock(&drv->mutex);
69 mtx_unlock(&drv->mutex);
85 mtx_lock(&drv->mutex);
87 mtx_unlock(&drv->mutex);
120 mtx_lock(&drv->mutex);
123 mtx_unlock(&drv->mutex);
137 mtx_unlock(&drv->mutex);
149 mtx_unlock(&drv->mutex);
169 mtx_lock(&drv->mutex);
172 mtx_unlock(&drv->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/wgl/
H A Dstw_framebuffer.h50 * This mutex has two purposes:
54 * Note: if both this mutex and the stw_device::fb_mutex need to be locked,
57 CRITICAL_SECTION mutex; member in struct:stw_framebuffer
62 * Note that even access to immutable members implies acquiring the mutex
115 * This is protected by stw_device::fb_mutex, not the mutex above.
118 * acquiring the stw_framebuffer::mutex of the framebuffer to be deleted.
121 * It is not necessary to acquire the mutex above to navigate the linked list
132 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_unlock
148 assert(stw_own_mutex(&fb->mutex));
160 * This function will acquire stw_framebuffer::mutex
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/va/
H A Dsubpicture.c76 mtx_lock(&drv->mutex);
79 mtx_unlock(&drv->mutex);
85 mtx_unlock(&drv->mutex);
91 mtx_unlock(&drv->mutex);
106 mtx_lock(&drv->mutex);
110 mtx_unlock(&drv->mutex);
116 mtx_unlock(&drv->mutex);
132 mtx_lock(&drv->mutex);
136 mtx_unlock(&drv->mutex);
141 mtx_unlock(&drv->mutex);
[all...]
H A Dbuffer.c67 mtx_lock(&drv->mutex);
69 mtx_unlock(&drv->mutex);
85 mtx_lock(&drv->mutex);
87 mtx_unlock(&drv->mutex);
120 mtx_lock(&drv->mutex);
123 mtx_unlock(&drv->mutex);
137 mtx_unlock(&drv->mutex);
149 mtx_unlock(&drv->mutex);
169 mtx_lock(&drv->mutex);
172 mtx_unlock(&drv->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/vulkan/wsi/
H A Dwsi_common_queue.h33 pthread_mutex_t mutex; member in struct:wsi_queue
64 ret = pthread_mutex_init(&queue->mutex, NULL);
85 pthread_mutex_destroy(&queue->mutex);
94 pthread_mutex_lock(&queue->mutex);
102 pthread_mutex_unlock(&queue->mutex);
114 pthread_mutex_lock(&queue->mutex);
132 ret = pthread_cond_timedwait(&queue->cond, &queue->mutex, &abstime);
150 pthread_mutex_unlock(&queue->mutex);
/xsrc/external/mit/MesaLib/dist/src/vulkan/wsi/
H A Dwsi_common_queue.h33 pthread_mutex_t mutex; member in struct:wsi_queue
62 ret = pthread_mutex_init(&queue->mutex, NULL);
83 pthread_mutex_destroy(&queue->mutex);
92 pthread_mutex_lock(&queue->mutex);
100 pthread_mutex_unlock(&queue->mutex);
112 pthread_mutex_lock(&queue->mutex);
130 ret = pthread_cond_timedwait(&queue->cond, &queue->mutex, &abstime);
148 pthread_mutex_unlock(&queue->mutex);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_cb_syncobj.c44 mtx_t mutex; /**< protects "fence" */ member in struct:st_sync_object
52 mtx_init(&so->mutex, mtx_plain);
63 mtx_destroy(&so->mutex);
90 mtx_lock(&so->mutex);
92 mtx_unlock(&so->mutex);
101 mtx_unlock(&so->mutex);
116 mtx_lock(&so->mutex);
118 mtx_unlock(&so->mutex);
144 mtx_lock(&so->mutex);
146 mtx_unlock(&so->mutex);
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_cb_syncobj.c45 simple_mtx_t mutex; /**< protects "fence" */ member in struct:st_sync_object
53 simple_mtx_init(&so->mutex, mtx_plain);
64 simple_mtx_destroy(&so->mutex);
92 simple_mtx_lock(&so->mutex);
94 simple_mtx_unlock(&so->mutex);
103 simple_mtx_unlock(&so->mutex);
118 simple_mtx_lock(&so->mutex);
120 simple_mtx_unlock(&so->mutex);
146 simple_mtx_lock(&so->mutex);
148 simple_mtx_unlock(&so->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/pipebuffer/
H A Dpb_slab.c112 mtx_lock(&slabs->mutex);
131 /* Drop the mutex temporarily to prevent a deadlock where the allocation
138 mtx_unlock(&slabs->mutex);
142 mtx_lock(&slabs->mutex);
151 mtx_unlock(&slabs->mutex);
165 mtx_lock(&slabs->mutex);
167 mtx_unlock(&slabs->mutex);
179 mtx_lock(&slabs->mutex);
181 mtx_unlock(&slabs->mutex);
227 (void) mtx_init(&slabs->mutex, mtx_plai
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/
H A Dpb_slab.c133 simple_mtx_lock(&slabs->mutex);
152 /* Drop the mutex temporarily to prevent a deadlock where the allocation
159 simple_mtx_unlock(&slabs->mutex);
163 simple_mtx_lock(&slabs->mutex);
172 simple_mtx_unlock(&slabs->mutex);
186 simple_mtx_lock(&slabs->mutex);
188 simple_mtx_unlock(&slabs->mutex);
200 simple_mtx_lock(&slabs->mutex);
202 simple_mtx_unlock(&slabs->mutex);
250 (void) simple_mtx_init(&slabs->mutex, mtx_plai
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/vdpau/
H A Dpresentation.c68 mtx_lock(&dev->mutex);
70 mtx_unlock(&dev->mutex);
74 mtx_unlock(&dev->mutex);
103 mtx_lock(&pq->device->mutex);
105 mtx_unlock(&pq->device->mutex);
136 mtx_lock(&pq->device->mutex);
138 mtx_unlock(&pq->device->mutex);
160 mtx_lock(&pq->device->mutex);
162 mtx_unlock(&pq->device->mutex);
188 mtx_lock(&pq->device->mutex);
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/vdpau/
H A Dpresentation.c68 mtx_lock(&dev->mutex);
70 mtx_unlock(&dev->mutex);
74 mtx_unlock(&dev->mutex);
103 mtx_lock(&pq->device->mutex);
105 mtx_unlock(&pq->device->mutex);
136 mtx_lock(&pq->device->mutex);
138 mtx_unlock(&pq->device->mutex);
160 mtx_lock(&pq->device->mutex);
162 mtx_unlock(&pq->device->mutex);
188 mtx_lock(&pq->device->mutex);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/clover/core/core/
H A Devent.cpp41 std::lock_guard<std::mutex> lock(mutex);
64 std::lock_guard<std::mutex> lock(mutex);
85 std::lock_guard<std::mutex> lock(mutex);
96 std::lock_guard<std::mutex> lock(mutex);
102 std::unique_lock<std::mutex> lock(mutex, st
[all...]
H A Dqueue.hpp27 #include <mutex>
73 std::mutex queued_events_mutex;
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/core/
H A Devent.cpp41 std::lock_guard<std::mutex> lock(mutex);
64 std::lock_guard<std::mutex> lock(mutex);
85 std::lock_guard<std::mutex> lock(mutex);
96 std::lock_guard<std::mutex> lock(mutex);
102 std::unique_lock<std::mutex> lock(mutex, st
[all...]

Completed in 21 milliseconds

1234567891011>>