summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-24 16:43:29 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-24 16:49:49 -0700
commitfbee13e2f633f0db7c6c9ceeaf4c5d4867baa4f8 (patch)
tree3648bafe4705bf93af1c18e32ed4c655d03d2c03 /bootstrap
parent6ffa68421a2804c957ca5661e97b35541378ac72 (diff)
iou: introduce iou_async() for threading
This is a preliminary implementaion of an iou-abstracted thread pool. Two callbacks are provided to iou_async(): async_cb: Called by a worker thread and must be carefully written for concurrent execution. completion_cb: Called by iou_run() after a thread has finished with async_cb(). As completion_cb() is called in the iou_run() context, assuming the caller is always entering iou_run() from the main thread, it may be viewed as a continuation point for the async work reentering the serial execution flow. At this time every iou_new() will create two worker threads. In the future it may just create a thread per core or something like that.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved