Lines Matching refs:available
98 } available; member
143 scheduler->available.indices = (skc_ushort*) in skc_scheduler_create()
144 …skc_runtime_host_perm_alloc(runtime,SKC_MEM_FLAGS_READ_WRITE,sizeof(*scheduler->available.indices)… in skc_scheduler_create()
146 scheduler->available.rem = size; in skc_scheduler_create()
149 …skc_runtime_host_perm_alloc(runtime,SKC_MEM_FLAGS_READ_WRITE,sizeof(*scheduler->available.indices)… in skc_scheduler_create()
156 scheduler->available.indices[ii] = ii; in skc_scheduler_create()
167 skc_runtime_host_perm_free(runtime,scheduler->available.indices); in skc_scheduler_dispose()
192 std::lock_guard<std::mutex> lock(scheduler->available.mutex); in skc_scheduler_acquire()
195 if (scheduler->available.rem > 0) in skc_scheduler_acquire()
196 command = scheduler->available.indices[--scheduler->available.rem]; in skc_scheduler_acquire()
226 std::lock_guard<std::mutex> lock(scheduler->available.mutex); in skc_scheduler_release()
229 scheduler->available.indices[scheduler->available.rem++] = command; in skc_scheduler_release()