Expand cpuworker API to allow other work types

This commit is contained in:
Nick Mathewson
2017-04-06 15:51:52 -04:00
parent 222122450c
commit b022ea32a6
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ typedef struct threadpool_s threadpool_t;
typedef struct workqueue_entry_s workqueue_entry_t;
/** Possible return value from a work function: */
typedef enum {
typedef enum workqueue_reply_t {
WQ_RPL_REPLY = 0, /** indicates success */
WQ_RPL_ERROR = 1, /** indicates fatal error */
WQ_RPL_SHUTDOWN = 2, /** indicates thread is shutting down */