cctools
work_queue_json.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2019- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef WORK_QUEUE_JSON_H
8 #define WORK_QUEUE_JSON_H
9 
18 #include "work_queue.h"
19 
24 struct work_queue *work_queue_json_create(const char *str);
25 
63 int work_queue_json_submit(struct work_queue *q, const char *str);
64 
79 char *work_queue_json_wait(struct work_queue *q, int timeout);
80 
81 
87 char *work_queue_json_remove(struct work_queue *q, int id);
88 
93 char *work_queue_json_get_status(struct work_queue *q);
94 
95 #endif
A manager-worker library.
char * work_queue_json_wait(struct work_queue *q, int timeout)
Wait for a task to complete.
char * work_queue_json_get_status(struct work_queue *q)
Get the status for a given work queue.
int work_queue_json_submit(struct work_queue *q, const char *str)
Submit a task to a queue.
struct work_queue * work_queue_json_create(const char *str)
Create a new work_queue object.
char * work_queue_json_remove(struct work_queue *q, int id)
Remove a task from the queue.