Lines Matching defs:tasks
140 LIST(isc__task_t) tasks;
169 #define FINISHED(m) ((m)->exiting && EMPTY((m)->tasks))
315 UNLINK(manager->tasks, task, link);
319 * All tasks have completed and the
377 APPEND(manager->tasks, task, link);
1277 * tasks remaining on the current ready queue, then
1431 INIT_LIST(manager->tasks);
1537 * We need to do so, because otherwise the list of tasks could
1561 for (task = HEAD(manager->tasks);
1572 * there's work left to do, and if there are already no tasks left
1590 if (!ISC_LIST_EMPTY(manager->tasks))
1592 INSIST(ISC_LIST_EMPTY(manager->tasks));
1850 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "tasks-running"));
1852 TRY0(xmlTextWriterEndElement(writer)); /* tasks-running */
1854 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "tasks-ready"));
1856 TRY0(xmlTextWriterEndElement(writer)); /* tasks-ready */
1860 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "tasks"));
1861 task = ISC_LIST_HEAD(mgr->tasks);
1904 TRY0(xmlTextWriterEndElement(writer)); /* tasks */
1924 isc_taskmgr_renderjson(isc_taskmgr_t *mgr0, json_object *tasks) {
1939 json_object_object_add(tasks, "thread-model", obj);
1943 json_object_object_add(tasks, "worker-threads", obj);
1947 json_object_object_add(tasks, "thread-model", obj);
1951 json_object_object_add(tasks, "references", obj);
1956 json_object_object_add(tasks, "default-quantum", obj);
1960 json_object_object_add(tasks, "tasks-running", obj);
1964 json_object_object_add(tasks, "tasks-ready", obj);
1969 for (task = ISC_LIST_HEAD(mgr->tasks);
2011 json_object_object_add(tasks, "tasks", array);