Lines Matching defs:obj
1928 json_object *obj = NULL, *array = NULL, *taskobj = NULL;
1937 obj = json_object_new_string("threaded");
1938 CHECKMEM(obj);
1939 json_object_object_add(tasks, "thread-model", obj);
1941 obj = json_object_new_int(mgr->workers);
1942 CHECKMEM(obj);
1943 json_object_object_add(tasks, "worker-threads", obj);
1945 obj = json_object_new_string("non-threaded");
1946 CHECKMEM(obj);
1947 json_object_object_add(tasks, "thread-model", obj);
1949 obj = json_object_new_int(mgr->refs);
1950 CHECKMEM(obj);
1951 json_object_object_add(tasks, "references", obj);
1954 obj = json_object_new_int(mgr->default_quantum);
1955 CHECKMEM(obj);
1956 json_object_object_add(tasks, "default-quantum", obj);
1958 obj = json_object_new_int(mgr->tasks_running);
1959 CHECKMEM(obj);
1960 json_object_object_add(tasks, "tasks-running", obj);
1962 obj = json_object_new_int(mgr->tasks_ready);
1963 CHECKMEM(obj);
1964 json_object_object_add(tasks, "tasks-ready", obj);
1982 obj = json_object_new_string(buf);
1983 CHECKMEM(obj);
1984 json_object_object_add(taskobj, "id", obj);
1987 obj = json_object_new_string(task->name);
1988 CHECKMEM(obj);
1989 json_object_object_add(taskobj, "name", obj);
1992 obj = json_object_new_int(task->references);
1993 CHECKMEM(obj);
1994 json_object_object_add(taskobj, "references", obj);
1996 obj = json_object_new_string(statenames[task->state]);
1997 CHECKMEM(obj);
1998 json_object_object_add(taskobj, "state", obj);
2000 obj = json_object_new_int(task->quantum);
2001 CHECKMEM(obj);
2002 json_object_object_add(taskobj, "quantum", obj);
2004 obj = json_object_new_int(task->nevents);
2005 CHECKMEM(obj);
2006 json_object_object_add(taskobj, "events", obj);